/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
     M o d u l e :   Z W I N - C A P I . T X T 
 
                     A l l   c o m m a n d s   f o r   P P L Z   i n   D y n a m i c   L i n k   L i b r a r y   f o r   W i n d o w s 
 
     N o t i c e s :   C o p y r i g h t   ( c )   2 0 0 1 - 2 0 1 3   A R G O X 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
     v
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ( 0 1 ) Z _ B a r 2 d _ M a x i ( )                             = >   pSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 ( 0 2 ) Z _ B a r 2 d _ P D F 4 1 7 ( )                         = >   pSQ NP  P D F 4 1 7 0
 
 ( 0 3 ) Z _ C l o s e P r n ( )                                 = >   ܕ  P r i n t e r   ]\O0
 
 ( 0 4 ) Z _ C r e a t e P r n ( )                               = >   _U  P r i n t e r   ]\O0
 
 ( 0 5 ) Z _ S e t _ F l a s h M e m o r y ( )                   = >   -[  F O R M   2QX[(W  R A M   b  F l a s h   M e m o r y 0
 
 ( 0 6 ) Z _ S e t _ F o r m a t _ N e w ( )                     = >   -[  F O R M   
T1z0
 
 ( 0 7 ) Z _ D e l _ F o r m a t ( )                             = >   *Rd  F o r m   ( h<h) 0
 
 ( 0 8 ) Z _ D e l _ G r a p h i c ( )                           = >   *Rd2QX[(WpSh_j  R A M   b  F l a s h   M e m o r y   gQvWb_0
 
 ( 0 9 ) Z _ D r a w _ B o x ( )                                 = >   ku NPFh0
 
 ( 1 0 ) Z _ D r a w _ L i n e ( )                               = >   ku Nh}0
 
 ( 1 1 ) Z _ G e t _ D L L _ V e r s i o n ( )                   = >   S_byQdkQxe^Hr,gǌ
0
 
 ( 1 2 ) Z _ G e t _ D L L _ V e r s i o n A ( )                 = >   S_byQdkQxe^Hr,gǌ
0
 
 ( 1 3 ) Z _ G e t _ G r a p h i c _ C o l o r B M P ( )         = >   Ic  B M P   Wji_rpp&N\Wb_2QX[(WpSh_jgQv  
 
                                                                       R A M   b  F l a s h   M e m o r y 0
 
 ( 1 4 ) Z _ I n i t i a l _ S e t t i n g ( )                   = >   MRnUt0
 
 ( 1 5 ) Z _ L o a d _ G r a p h i c ( )                         = >   RpS NPWb_0
 
 ( 1 6 ) Z _ O p e n _ C h i n e s e F o n t ( )                 = >   _UO(u-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) 0
 
 ( 1 7 ) Z _ P r i n t _ F o r m ( )                             = >   RpS NP  F O R M ( h<h) &N8eQ  F O R M   v
T1z&N-[
 
                                                                       [SؚvkOT_!kxeRpSNxe0
 
 ( 1 8 ) Z _ P r i n t _ O u t ( )                               = >   8Q@b	gǌe&N-[[SؚvkOT_!kxeRpSNxe0
 
 ( 1 9 ) Z _ P r n _ B a r c o d e ( )                           = >   pSQ NPhx0
 
 ( 2 0 ) Z _ P r n _ T e x t ( )                                 = >   pSQ NLeW[0
 
 ( 2 1 ) Z _ P r n _ T e x t _ C h i n e s e ( )                 = >   pSQ NLeW[O(u-NeޞwcW[WjHh( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
 ( 2 2 ) Z _ P r n _ T e x t _ T r u e T y p e ( )               = >   pSQ NL  T r u e   T y p e   F o n t   eW[0
 
 ( 2 3 ) Z _ P r n _ T e x t _ T r u e T y p e _ W ( )           = >   pSQ NL  T r u e   T y p e   F o n t   eW[&Nc6RW[Wv[Sؚ0
 
 ( 2 4 ) Z _ C l e a r _ M e m o r y ( )                         = >   nd  P r i n t e r   gQ  R A M   M e m o r y   vǌe0
 
 ( 2 5 ) Z _ S e t _ B a c k f e e d ( )                         = >   jd|V6e\Pbk0
 
 ( 2 6 ) Z _ S e t _ D a r k n e s s ( )                         = >   -[qa-RpSq^0
 
 ( 2 7 ) Z _ S e t _ D e b u g D i a l o g ( )                   = >   -[d/tX0
 
 ( 2 8 ) Z _ S e t _ L a b e l ( )                               = >   -[}5_w^0
 
 ( 2 9 ) Z _ S e t _ M o d e ( )                                 = >   _UR  C u t t e r   b  P e e l 0
 
 ( 3 0 ) Z _ S e t _ O r i g i n ( )                             = >   -[YRpSMOn0
 
 ( 3 1 ) Z _ S e t _ P a p e r ( )                               = >   -[p#~}5_0
 
 ( 3 2 ) Z _ S e t _ P r n c o m p o r t                         = >   -[pSh_j^RW0
 
 ( 3 3 ) Z _ S e t _ P r n c o m p o r t _ P C ( )               = >   -[  P C   ^RW0
 
 ( 3 4 ) Z _ S e t _ R e s e t ( )                               = >   V_]^-[0
 
 ( 3 5 ) Z _ S e t _ S p e e d ( )                               = >   -[RpS^0
 
 ( 3 6 ) Z _ S e t _ T P H ( )                                   = >   -[IpS!j_0
 
 ( 3 7 ) Z _ S e t _ U n i t ( )                                 = >   -[^ϑUMOpTblQ:\bP }0
 
 ( 3 8 ) Z _ S e t _ G a p ( )                                   = >   -[  G a p   w^0
 
 ( 3 9 ) Z _ S e t _ P r o c e s s D l g ( )                     = >   _Ubܕ2^
\qFh0
 
 ( 4 0 ) Z _ B a r 2 d _ Q R C o d e ( )                         = >   2 D   B a r c o d e   Q R   c o d e   RpS0
 
 ( 4 1 ) Z _ S e t _ P r i n t W i d t h ( )                     = >   -[RpS[^0
 
 ( 4 2 ) Z _ P r i n t _ O u t Q u a l i t y ( )                 = >   -[RpS5_xe0
 
 ( 4 3 ) Z _ G e t U S B B u f f e r L e n ( )                   = >   gb  U S B   Wǌew^0
 
 ( 4 4 ) Z _ E n u m U S B ( )                                   = >   S_  U S B   Wvǌe0
 
 ( 4 5 ) Z _ C r e a t e U S B P o r t ( )                       = >   O(u  U S B   W2LP80
 
 ( 4 6 ) Z _ C r e a t e P o r t ( )                             = >   _UP8W2LP80
 
 ( 4 7 ) Z _ S e t _ M i r r o r ( )                             = >   _Ubܕ\!j_
 
 ( 4 8 ) Z _ B a r 2 d _ R S S ( )                               = >   RpSR S S hx
 
 ( 4 9 ) Z _ G e t N e t P r i n t e r B u f f e r L e n ( )     = >   gb  N e t   P r i n t e r vǌew^0
 
 ( 5 0 ) Z _ E n u m N e t P r i n t e r ( )                     = >   S_  N e t   P r i n t e r vǌe0
 
 ( 5 1 ) Z _ C r e a t e N e t P o r t ( )                       = >   O(u  N e t   W2LP80
 
 ( 5 2 ) Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( )       = >   pSQ NL1uU n i c o d e }xeW[@bIbv  T r u e   T y p e   F o n t   eW[0  
 
 ( 5 3 ) Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( )     = >   pSQ NL1uU n i c o d e }xeW[@bIbv  T r u e   T y p e   F o n t   eW[0    
 
 ( 5 4 ) Z _ G e t U S B D e v i c e I n f o ( )                 = >   S_  U S B   Wv݈n
T1zT݈n_0
 
 ( 5 5 ) Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( )     = >   Ic  B M P   Wji_rpp&N\Wb_2QX[(WpSh_jgQv  
 
                                                                       R A M   b  F l a s h   M e m o r y 0
 
 ( 5 6 ) Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( )   = >   Ic  B M P   Wji_rpp&N\Wb_2QX[(WpSh_jgQv  
 
                                                                                 R A M   b  F l a s h   M e m o r y 0
 
 ( 5 7 ) Z _ W r i t e D a t a ( )                               = >   (uOzsS\ǌePQbfBf[eQfX[@S-N0
 
 ( 5 8 ) Z _ R e a d D a t a ( )                                 = >   S_pSh_j-Nvǌe0
 
 ( 5 9 ) Z _ S e t _ E n c r y p t i o n K e y ( )               = >   -[R[pSv<P0
 
 ( 6 0 ) Z _ C h e c k _ E n c r y p t i o n K e y ( )           = >   xR[pSvckx'`0
 
 ( 6 1 ) Z _ S e t _ E r r o r D l g ( )                         = >   _Ubܕ͑fbOUz0
 
 ( 6 2 ) Z _ C l e a r _ M e m o r y E x ( )                     = >   nd  P r i n t e r   gQ  R A M   b  F l a s h   M e m o r y   vǌe0
 
 ( 6 3 ) Z _ B a r 2 d _ D a t a M a t r i x ( )                 = >   pSQ NP  D a t a   M a t r i x   c o d e 0
 
 ( 6 4 ) Z _ S e t _ C o m m T i m e o u t ( )                   = >   -[OvBf. 
 
 ( 6 5 ) Z _ G e t _ C o m m T i m e o u t ( )                   = >   S_OvBf. 
 
 ( 6 6 ) Z _ S e t _ L a b e l F o r S m a r t P r i n t ( )     = >   -[  S m a r t   P r i n t   -N@b vǌ
. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
     laN
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 1 . `Oar\D L L jHh>en(WTRQ? 
 
     O(u3 2 MOCQvD L L : 
 
     A . \D L L jHhTa(uz_>e(WT NvN. ( /f g}Yvel) 
 
     B . (WW i n d o w s   3 2 MOCQ\Omi|q}-N,   \D L L jHh>en(W\ W i n d o w s \ S y s t e m 3 2 v. 
 
     C . (WW i n d o w s   6 4 MOCQ\Omi|q}-N,   \D L L jHh>en(W\ W i n d o w s \ S y s w o w 6 4 v. 
 
     O(u6 4 MOCQvD L L : 
 
     A . \D L L jHhTa(uz_>e(WT NvN. ( /f g}Yvel) 
 
     B . (WW i n d o w s   3 2 MOCQ\Omi|q}-N,   !qlO(u  6 4 MOCQvD L L . 
 
     C . (WW i n d o w s   6 4 MOCQ\Omi|q}-N,   \D L L jHh>en(W\ W i n d o w s \ S y s w o w 3 2 v. 
 
 2 . NN{Op  V i s u a l   C + +   S  V i s u a l   B a s i c   v{O, vQNz_ 
N N[[hQvT0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t U S B B u f f e r L e n ( ) 
 
 Z _ E n u m U S B ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R  S_  U S B   P r i n t e r   v݈n
T1zSǌew^0
 
 
 
 l
 
     v c : 
 
         i n t   Z _ G e t U S B B u f f e r L e n ( v o i d ) ; 
 
         i n t   Z _ E n u m U S B ( c h a r   * b u f ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t U S B B u f f e r L e n ( )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ E n u m U S B ( B y V a l   b u f   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t U S B B u f f e r L e n ( )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ E n u m U S B ( B y V a l   b u f   A s   B y t e ( ) )   A s   I n t e g e r 
 
 
 
 Sxe
 
         b u f ; 
 
             2QX[  U S B   P r i n t e r   ǌe0
 
 
 
 PV<P
 
         Z _ G e t U S B B u f f e r L e n ( ) ;     PV  U S B   P r i n t e r   vǌew^. 
 
         Z _ E n u m U S B ( ) ;     0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         c h a r   * p b u f ; 
 
         i n t   n L e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 ; 
 
         i f   ( n L e n   >   1 )   { 
 
             p b u f   =   ( c h a r   * ) n e w   c h a r [ n L e n ] ; 
 
             Z _ E n u m U S B ( p b u f ) ; 
 
         } 
 
     V B :   V B A : 
 
         D i m   n L e n   A s   L o n g 
 
         D i m   p b u f   A s   S t r i n g 
 
         n L e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 
 
         I f   n L e n   >   1   T h e n 
 
             p b u f   =   S p a c e ( 1 2 8 ) 
 
             C a l l   Z _ E n u m U S B ( p b u f ) 
 
         E n d   I f 
 
     V B . n e t : 
 
         D i m   n L e n   A s   I n t e g e r 
 
         D i m   p b u f ( 1 2 8 )   A s   B y t e 
 
         n L e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 
 
         I f   n L e n   >   1   T h e n 
 
             C a l l   Z _ E n u m U S B ( p b u f ) 
 
         E n d   I f 
 
 
 
 f    iQPQxe/f ND}vQxe0HQ(u  Z _ G e t U S B B u f f e r L e n ( )   S_  U S B   P8Wvǌew^,   
 
         6q_QMaԚf}  Z _ E n u m U S B ( )   2QX[  U S B   Wvǌe0U S B   Wvǌe/fN( " 0 x 0 d 0 x 0 a " ) 
 
         ZPR, 	OO,   Ygǌe/f  A - 2 0 0 ( 0 x 0 d ) ( 0 x 0 a ) R - 4 0 0 Z I P vqh:y  U S B 1   /fc  A - 2 0 0 ,   
 
         U S B 2   /fc  R - 4 0 0 Z i p 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t U S B D e v i c e I n f o ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R  S_  U S B   P r i n t e r v݈n
T1zT݈n_0
 
 
 
 l
 
     V C : 
 
         i n t   Z _ G e t U S B D e v i c e I n f o ( i n t   n P o r t ,   c h a r   * p D e v i c e N a m e ,   i n t   * p D e v i c e N a m e L e n ,   
 
             c h a r   * p D e v i c e P a t h ,   i n t   * p D e v i c e P a t h L e n ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t U S B D e v i c e I n f o ( B y V a l   n P o r t   A s   L o n g ,   _ 
 
             B y V a l   p D e v i c e N a m e   A s   S t r i n g ,   B y R e f   p D e v i c e N a m e L e n   A s   L o n g ,   _ 
 
             B y V a l   p D e v i c e P a t h   A s   S t r i n g ,   B y R e f   p D e v i c e P a t h L e n   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t U S B D e v i c e I n f o ( B y V a l   n P o r t   A s   I n t e g e r ,   _ 
 
             B y V a l   p D e v i c e N a m e   A s   B y t e ( ) ,   B y R e f   p D e v i c e N a m e L e n   A s   I n t e g e r ,   _ 
 
             B y V a l   p D e v i c e P a t h   A s   B y t e ( ) ,   B y R e f   p D e v i c e P a t h L e n   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe
 
         n P o r t ; 
 
             c[S_ǌevU S B   p r i n t e r ,   1u1 Y. 
 
         p D e v i c e N a m e ; 
 
             2QX[U S B   p r i n t e r v݈n
T1z,   8eQBfpzzcj,   GR
NkXǌe. 
 
         p D e v i c e N a m e L e n ; 
 
             |TSQ_BfkXeQp D e v i c e N a m e fX[@Svw^;   8QBfGRgVP݈n
T1zvw^. 
 
         p D e v i c e P a t h ; 
 
             2QX[U S B   p r i n t e r v݈n_,   8eQBfpzzcj,   GR
NkXǌe. 
 
         p D e v i c e P a t h L e n ; 
 
             |TSQ_BfkXeQp D e v i c e P a t h fX[@Svw^;   8QBfGRgVP݈n_vw^. 
 
 
 
 PV<P
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         c h a r   b u f 1 [ 1 2 8 ] = { 0 } ,   b u f 2 [ 1 2 8 ] = { 0 } ; 
 
         i n t   n L e n 1 = 1 2 8 ,   n L e n 2 = 1 2 8 ,   n l e n ; 
 
         n l e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 ; 
 
         i f   ( n l e n   >   1 )   { 
 
             Z _ G e t U S B D e v i c e I n f o ( 1 ,   b u f 1 ,   & n L e n 1 ,   b u f 2 ,   & n L e n 2 ) ; 
 
             Z _ C r e a t e P r n ( 1 2 ,   b u f 2 ) ;   / / o r   Z _ C r e a t e P o r t ( 6 ,   0 ,   b u f 2 ) ; 
 
         } 
 
     V B :   V B A : 
 
         D i m   b u f 1   A s   S t r i n g 
 
         D i m   b u f 2   A s   S t r i n g 
 
         D i m   n L e n 1 ,   n L e n 2 ,   n l e n   A s   L o n g 
 
 
 
         n l e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 
 
         I f   n l e n   >   1   T h e n 
 
             n L e n 1   =   1 2 8 
 
             n L e n 2   =   1 2 8 
 
             b u f 1   =   S p a c e ( n L e n 1 ) 
 
             b u f 2   =   S p a c e ( n L e n 2 ) 
 
             C a l l   Z _ G e t U S B D e v i c e I n f o ( 1 ,   b u f 1 ,   n L e n 1 ,   b u f 2 ,   n L e n 2 ) 
 
             C a l l   Z _ C r e a t e P r n ( 1 2 ,   b u f 2 )   ' o r   C a l l   Z _ C r e a t e P o r t ( 6 ,   0 ,   b u f 2 ) 
 
         E n d   I f 
 
     V B . n e t : 
 
         D i m   b u f 1 ( )   A s   B y t e 
 
         D i m   b u f 2 ( )   A s   B y t e 
 
         D i m   n L e n 1 ,   n L e n 2 ,   n l e n   A s   I n t e g e r 
 
         D i m   e n c A s c I I   =   S y s t e m . T e x t . E n c o d i n g . A S C I I 
 
 
 
         n l e n   =   Z _ G e t U S B B u f f e r L e n ( )   +   1 
 
         I f   n l e n   >   1   T h e n 
 
             n L e n 1   =   1 2 8 
 
             n L e n 2   =   1 2 8 
 
             R e D i m   b u f 1 ( n L e n 1 ) 
 
             R e D i m   b u f 2 ( n L e n 2 ) 
 
             C a l l   Z _ G e t U S B D e v i c e I n f o ( 1 ,   b u f 1 ,   n L e n 1 ,   b u f 2 ,   n L e n 2 ) 
 
             C a l l   Z _ C r e a t e P r n ( 1 2 ,   e n c A s c I I . G e t S t r i n g ( b u f 2 ,   0 ,   n L e n 2 ) ) 
 
             ' o r   C a l l   Z _ C r e a t e P o r t ( 6 ,   0 ,   e n c A s c I I . G e t S t r i n g ( b u f 2 ,   0 ,   n L e n 2 ) ) 
 
         E n d   I f 
 
 
 
 f    dkQ_HQ|TS  Z _ G e t U S B B u f f e r L e n ( )   S_  U S B   p r i n t e r vǌew^,   6q_Q|TS  
 
         Z _ G e t U S B D e v i c e I n f o ( )   S_  U S B   p r i n t e r vvܕǌe0
 
         p D e v i c e P a t h @b2QX[vǌe/fU S B v݈n_,   S(u(WZ _ C r e a t e P r n ( ) SZ _ C r e a t e P o r t ( ) 
 
         O_UU S B ݈n0
 
         
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t N e t P r i n t e r B u f f e r L e n ( ) 
 
 Z _ E n u m N e t P r i n t e r ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R  S_  N e t   P r i n t e r   v݈n
T1zSǌew^0
 
 
 
 l
 
     V C : 
 
         i n t   Z _ G e t N e t P r i n t e r B u f f e r L e n ( v o i d ) ; 
 
         i n t   Z _ E n u m N e t P r i n t e r ( c h a r   * b u f ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ E n u m N e t P r i n t e r ( B y V a l   b u f   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ E n u m N e t P r i n t e r ( B y V a l   b u f   A s   B y t e ( ) )   A s   I n t e g e r 
 
 
 
 Sxe
 
         b u f ; 
 
             2QX[  N e t   P r i n t e r   ǌe0
 
 
 
 PV<P
 
         Z _ G e t N e t P r i n t e r B u f f e r L e n ( ) ;     PV  N e t   P r i n t e r   vǌew^. 
 
         Z _ E n u m N e t P r i n t e r ( ) ;     0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         c h a r   * p b u f ; 
 
         i n t   n L e n   =   Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   +   1 ; 
 
         i f   ( n L e n   >   1 )   { 
 
             p b u f   =   ( c h a r   * ) n e w   c h a r [ n L e n ] ; 
 
             Z _ E n u m N e t P r i n t e r ( p b u f ) ; 
 
         } 
 
     V B :   V B A : 
 
         D i m   n L e n   A s   L o n g 
 
         D i m   p b u f   A s   S t r i n g 
 
         n L e n   =   Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   +   1 
 
         I f   n L e n   >   1   T h e n 
 
             p b u f   =   S p a c e ( 1 2 8 ) 
 
             C a l l   Z _ E n u m N e t P r i n t e r ( p b u f ) 
 
         E n d   I f 
 
     V B . n e t : 
 
         D i m   n L e n   A s   I n t e g e r 
 
         D i m   p b u f ( 1 2 8 )   A s   B y t e 
 
         n L e n   =   Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   +   1 
 
         I f   n L e n   >   1   T h e n 
 
             C a l l   Z _ E n u m N e t P r i n t e r ( p b u f ) 
 
         E n d   I f 
 
 
 
 f    iQPQxe/f ND}vQxe0HQ(u  Z _ G e t N e t P r i n t e r B u f f e r L e n ( )   S_  N e t   P r i n t e r 
 
         vǌew^,   6q_QMaԚf}  Z _ E n u m N e t P r i n t e r ( )   2QX[  N e t   P r i n t e r   vǌe0
 
         N e t   P r i n t e r   vǌe/fN( " 0 x 0 d 0 x 0 a " ) ZPR, 	OO,   Ygǌe/f  
 
         N e t P r i n t e r : 1 9 2 . 1 6 8 . 1 . 2 ( 0 x 0 d ) ( 0 x 0 a ) N e t P r i n t e r : 1 9 2 . 1 6 8 . 1 . 2 5   vqh:y  
 
         N e t P r i n t e r 1   /fc  N e t P r i n t e r : 1 9 2 . 1 6 8 . 1 . 2 ,   N e t P r i n t e r 2   /fc  N e t P r i n t e r : 1 9 2 . 1 6 8 . 1 . 2 5 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C r e a t e P r n ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _U  P r i n t e r   ]\O0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ C r e a t e P r n ( i n t   s e l e c t i o n ,   L P C T S T R   f i l e n a m e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e P r n ( B y V a l   s e l e c t i o n   A s   L o n g ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e P r n ( B y V a l   s e l e c t i o n   A s   I n t e g e r ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         s e l e c t i o n ; 
 
             xd8QWbjHh0
 
             0   - >   p r i n t   t o   f i l e . 
 
             1   - >   l p t 1 ,   2   - >   l p t 2 ,   3   - >   l p t 3 
 
             4   - >   c o m 1 ,   5   - >   c o m 2 ,   6   - >   c o m 3 
 
             1 0   - >   p i p e ,   1 1   - >   U S B X X X ,   1 2   - >   U S B 
 
             1 3   - >   L A N   C l i e n t ( T C P / I P ) 
 
         f i l e n a m e ; 
 
             vu  s e l e c t i o n   /f  0   BfǌeGR8QjHhf i l e n a m e   pjHh
T1zS+T_0
 
             vu  s e l e c t i o n   /f  1 0   Bff i l e n a m e   p8Q_b_jx( ݈n_) 0
 
             vu  s e l e c t i o n   /f  1 1   Bff i l e n a m e   cv/f`_UvU S B KNi n d e x ,   i n d e x 1u1 Y; 
 
             vu  s e l e c t i o n   /f  1 2   Bff i l e n a m e   cv/f`_UvU S B _jx( ݈n_) ,   
 
             Tn P o r t   =   1 0 vO(uel N#j
 
             vu  s e l e c t i o n   gQ[/f  1 3   Bf,   f i l e n a m e   cv/f`_UvI P   A d d r e s s ,   O(uT C P / I P S_U;   
 
             -vp o r t <Pp9 1 0 0 ,   傁c[p o r t <P,   Y8 0 ,   GR(WI P A d d r e s s _R
NW[2N" : 8 0 " . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ C r e a t e P r n ( 1 ,   N U L L ) ;   o r   Z _ C r e a t e P r n ( 0 ,   " C : \ \ o u t . p r n " ) ; 
 
         Z _ C r e a t e P r n ( 1 0 , " \ \ \ \ a l l e n \ \ L a b e l " ) ;     / / s h a r e   m o d e . 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ C r e a t e P r n ( 1 ,   n u l l )   o r   C a l l   Z _ C r e a t e P r n ( 0 ,   " C : \ \ o u t . p r n " ) 
 
         C a l l   Z _ C r e a t e P r n ( 1 0 ,   " \ \ \ \ a l l e n \ \ L a b e l " ) 
 
 
 
 f:     Z _ C r e a t e P r n ( )   Qxeg_U`Oxdv8QWb_U`OueQv8Qj0
 
         PQxe_(W@b	gQxeKNMRWL0
 
         Z _ C r e a t e P r n ( ) ,   Z _ C r e a t e U S B P o r t ( )   ,   Z _ C r e a t e N e t P o r t ( )   T  Z _ C r e a t e P o r t ( )   
NTBfO(u0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C r e a t e P o r t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _U  P r i n t e r   ]\O0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ C r e a t e P o r t ( i n t   n P o r t T y p e ,   i n t   n P o r t ,   L P C T S T R   f i l e n a m e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e P o r t ( B y V a l   n P o r t T y p e   A s   L o n g ,   B y V a l   n P o r t   A s   L o n g ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e P o r t ( B y V a l   n P o r t T y p e   A s   I n t e g e r ,   B y V a l   n P o r t   A s   I n t e g e r ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n P o r t T y p e ; 
 
             xd8QW.z^0
 
             0   - >   jHh
 
             1   - >   S e r i a l   p o r t 
 
             2   - >   P a r a l l e l   p r o t 
 
             4   - >   U S B   p o r t 
 
             5   - >   L A N   p o r t 
 
             6   - >   U S B   p o r t 
 
         n P o r t ; 
 
             xd8QW}_0
 
             vu  n P o r t T y p e   p  1   Bf,   1   - >   c o m 1 ,   2   - >   c o m 2 , . . . . . 
 
         f i l e n a m e ; 
 
             vu  n P o r t T y p e   p  0   BfǌeGR8QjHhf i l e n a m e   pjHh
T1zS+T_0
 
             vu  n P o r t T y p e   p  4   Bff i l e n a m e   cv/f`_UvU S B vi n d e x ,   i n d e x 1u1 Y. 
 
             vu  n P o r t T y p e   p  5   Bff i l e n a m e   cv/f`_UvI P   A d d r e s s ,   O(uT C P / I P ,   
 
                 p o r t   9 1 0 0 S_U. 
 
             vu  n P o r t T y p e   p  6   Bff i l e n a m e   cv/f`_UvU S B v݈n_. 
 
             
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ C r e a t e P o r t ( 1 ,   1 ,   N U L L ) ; 
 
         Z _ C r e a t e P o r t ( 0 ,   0 ,   " C : \ \ o u t . p r n " ) ; 
 
         Z _ C r e a t e P o r t ( 5 ,   0 ,   " 1 9 2 . 1 6 8 . 1 . 3 " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ C r e a t e P o r t ( 1 ,   1 ,   n u l l ) 
 
         Z _ C r e a t e P o r t ( 0 ,   0 ,   " C : \ \ o u t . p r n " ) ; 
 
         Z _ C r e a t e P o r t ( 5 ,   0 ,   " 1 9 2 . 1 6 8 . 1 . 3 " ) ; 
 
 
 
 f:     Z _ C r e a t e P o r t ( )   Qxeg_U`Oxdv8QWb_U`OueQv8Qj0
 
         PQxe_(W@b	gQxeKNMRWL0
 
         Z _ C r e a t e P r n ( ) ,   Z _ C r e a t e U S B P o r t ( )   ,   Z _ C r e a t e N e t P o r t ( )   T  Z _ C r e a t e P o r t ( )   
NTBfO(u0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C r e a t e U S B P o r t ( ) 
 
 Z _ C r e a t e N e t P o r t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _U  P r i n t e r   ]\O0
 
               O(u  Z _ C r e a t e U S B P o r t ( )   MR HQ|TS  Z _ G e t U S B B u f f e r L e n ( ) ,   
 
               /fpNT  Z _ E n u m U S B ( )   S  Z _ G e t U S B D e v i c e I n f o ( )   Tek0
 
               O(u  Z _ C r e a t e N e t P o r t ( )   MR HQ|TS  Z _ G e t N e t P r i n t e r B u f f e r L e n ( ) ,   
 
               /fpNT  Z _ E n u m N e t P r i n t e r ( )   Tek0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ C r e a t e U S B P o r t ( i n t   n P o r t ) ; 
 
         i n t   Z _ C r e a t e N e t P o r t ( i n t   n P o r t ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e U S B P o r t ( B y V a l   n P o r t   A s   L o n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e N e t P o r t ( B y V a l   n P o r t   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e U S B P o r t ( B y V a l   n P o r t   A s   I n t e g e r )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ C r e a t e N e t P o r t ( B y V a l   n P o r t   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n P o r t ; 
 
             U S B   P8W  ;   L A N   P8W,   n P o r t 1u1 Y. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         i n t   n L e n ; 
 
         n L e n   =   Z _ G e t U S B B u f f e r L e n ( ) ; 
 
         i f   ( n L e n )   { 
 
             Z _ C r e a t e U S B P o r t ( 1 ) ; 
 
         } 
 
         n L e n   =   Z _ G e t N e t P r i n t e r B u f f e r L e n ( ) ; 
 
         i f   ( n L e n )   { 
 
             Z _ C r e a t e N e t P o r t ( 1 ) ; 
 
         } 
 
     V B :   V B A :   V B . n e t : 
 
         D i m   n L e n   A s   L o n g 
 
         n L e n   =   Z _ G e t U S B B u f f e r L e n ( ) 
 
         I f   n L e n   T h e n 
 
             C a l l   Z _ C r e a t e U S B P o r t ( 1 ) 
 
         E n d   I f 
 
         n L e n   =   Z _ G e t N e t P r i n t e r B u f f e r L e n ( ) 
 
         I f   n L e n   T h e n 
 
             C a l l   Z _ C r e a t e N e t P o r t ( 1 ) 
 
         E n d   I f 
 
 
 
 f:     Z _ C r e a t e U S B P o r t ( )   T  Z _ C r e a t e N e t P o r t ( )   Qxeg_U`Oxdv8QWb
 
         _U`OueQv8Qj0PQxe_(W@b	gQxeKNMRWL0
 
         Z _ C r e a t e P r n ( ) ,   Z _ C r e a t e U S B P o r t ( )   ,   Z _ C r e a t e N e t P o r t ( )   T  Z _ C r e a t e P o r t ( )   
NTBfO(u0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C l o s e P r n ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   ܕ  P r i n t e r   ]\O0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ C l o s e P r n ( v o i d ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D e c l a r e   S u b   Z _ C l o s e P r n ( ) 
 
 
 
 {O: 
 
     V C : 
 
         Z _ C l o s e P r n ( ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ C l o s e P r n ( ) 
 
 
 
 f:     P  Z _ C l o s e P r n   QxegܕWLNvaԚS`Oxdv8QWbܕ`O_Uv
 
         8Qj0PQxe_(W@b	gQxeKN_WL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ B a r 2 d _ M a x i ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ B a r 2 d _ M a x i ( i n t   x ,   i n t   y ,   i n t   n M o d e ,   i n t   n S y m b o l ,   i n t   n T o t a l ,   i n t   n C l a s s , 
 
             i n t   n C o u n t r y ,   c h a r   c Z i p C o d e 1 [ 6 ] ,   c h a r   c Z i p C o d e 2 [ 4 ] ,   L P C T S T R   d a t a ,   i n t   i n c r e a s e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ M a x i ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   B y V a l   n M o d e   A s   L o n g ,   _ 
 
             B y V a l   n S y m b o l   A s   L o n g ,   B y V a l   n T o t a l   A s   L o n g ,   B y V a l   n C l a s s   A s   L o n g ,   _ 
 
             B y V a l   n C o u n t r y   A s   L o n g ,   B y V a l   c Z i p C o d e 1   A s   S t r i n g ,   B y V a l   c Z i p C o d e 2   A s   S t r i n g ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   i n c r e a s e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ M a x i ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   n M o d e   A s   I n t e g e r ,   B y V a l   n S y m b o l   A s   I n t e g e r ,   B y V a l   n T o t a l   A s   I n t e g e r ,   _ 
 
             B y V a l   n C l a s s   A s   I n t e g e r ,   B y V a l   n C o u n t r y   A s   I n t e g e r ,   B y V a l   c Z i p C o d e 1   A s   S t r i n g ,   _ 
 
             B y V a l   c Z i p C o d e 2   A s   S t r i n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   i n c r e a s e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. ( 1   d o t   =   0 . 1 2 5   m m ) 
 
         n M o d e ; 
 
             B a r c o d e   m o d e 
 
             2 :   N u m e r i c   P o s t a l   C o d e ( U S ) 
 
             3 :   A l p h a n u m e r i c   P o s t a l   C o d e ( N o n - U S ) 
 
         n S y m b o l ; 
 
             S y m b o l   N u m b e r :   1   ~   8 
 
         n T o t a l ; 
 
             S y m b o l   N u m b e r   =~xe:   1   ~   8 
 
         n C l a s s ; 
 
             t h r e e   d i g i t   c l a s s   o f   s e r v i c e 
 
         n C o u n t r y ; 
 
             t h r e e   d i g i t   c o u n t r y   c o d e 
 
         c Z i p C o d e 1 ; 
 
             n M o d e   =   2   - - >   f i v e   d i g i t   z i p   c o d e 
 
             n M o d e   =   3   - - >   s i x   c h a r a c t e r   z i p   c o d e 
 
         c Z i p C o d e 2 ; 
 
             f o u r   d i g i t   z i p   c o d e   e x t e r n s i o n .   O n l y   U s e d   i n   n M o d e   2 . 
 
         d a t a ; 
 
             ǌeW[2N,    gY8 4 PW[CQ. 
 
         i n c r e a s e ; 
 
             Xϑ,   -<Pp0 
 
 
 
 PV<P:   0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ B a r 2 d _ M a x i ( 5 0 ,   5 0 ,   2 ,   1 ,   1 ,   0 0 1 ,   8 4 0 ,   " 1 5 2 3 8 " ,   " 2 8 0 2 " ,   " T h i s   M a x i C o d e " ,   0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ B a r 2 d _ M a x i ( 5 0 ,   5 0 ,   2 ,   1 ,   1 ,   0 0 1 ,   8 4 0 ,   " 1 5 2 3 8 " ,   " 2 8 0 2 " ,   " T h i s   M a x i C o d e " ,   0 ) 
 
 
 
 f:   P  Z _ B a r 2 d _ M a x i   QxeSNRpSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ B a r 2 d _ P D F 4 1 7 ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NP  P D F 4 1 7   2 D   B a r c o d e 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ B a r 2 d _ P D F 4 1 7 ( i n t   x ,   i n t   y ,   i n t   o ,   i n t   h ,   i n t   s ,   i n t   c ,   i n t   r ,   i n t   t ,   
 
             i n t   n a r r o w ,   L P C T S T R   d a t a ,   i n t   i n c r e a s e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ P D F 4 1 7 ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   B y V a l   o   A s   L o n g ,   _ 
 
             B y V a l   h   A s   L o n g ,   B y V a l   s   A s   L o n g ,   B y V a l   c   A s   L o n g ,   B y V a l   r   A s   L o n g ,   _ 
 
             B y V a l   t   A s   L o n g ,   B y V a l   n a r r o w   A s   L o n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   i n c r e a s e   A s   L o n g )   A s   L o n g 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ P D F 4 1 7 ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   o   A s   I n t e g e r ,   B y V a l   h   A s   I n t e g e r ,   B y V a l   s   A s   I n t e g e r ,   B y V a l   c   A s   I n t e g e r ,   _ 
 
             B y V a l   r   A s   I n t e g e r ,   B y V a l   t   A s   I n t e g e r ,   B y V a l   n a r r o w   A s   I n t e g e r ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   i n c r e a s e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. ( 1   d o t   =   0 . 1 2 5   m m ) 
 
         o ; 
 
             RpSeT[MO' 1 ' /f  0  ' 2 ' /f9 0  0' 3 ' /f1 8 0  ' 4 ' /f2 7 0  
 
         h ; 
 
             B a r c o d e   h e i g h t   f o r   I n d i v i d u a l   R o w s 
 
             h   *   m o d u l e   =   h e i g h t   o f   i n d i v i d u s l   r o w s 
 
         s ; 
 
             /!hckI{}  0 ^8 
 
         c ; 
 
             c o l u m n   c o u n t 
 
         r ; 
 
             r o w   c o u n t 
 
         t ; 
 
             T r u n c a t i o n   f l a g ' 0 '   /f  n o r m a l   T  ' 1 '   /f  t r u n c a t e d . 
 
         n a r r o w ; 
 
             !jD}ؚ^. 
 
         d a t a ; 
 
             ǌeW[2N,  gY8 4 PW[CQ. 
 
         i n c r e a s e ; 
 
             Xϑ, -<Pp0 . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ B a r 2 d _ P D F 4 1 7 ( 5 0 ,   5 0 ,   0 ,   5 ,   5 ,   2 ,   8 3 ,   0 ,   2 ,   " P D F - 4 1 7 " ,   0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ B a r 2 d _ P D F 4 1 7 ( 5 0 ,   5 0 ,   0 ,   5 ,   5 ,   2 ,   8 3 ,   0 ,   2 ,   " P D F - 4 1 7 " ,   0 ) 
 
 
 
 f:     P  Z _ B a r 2 d _ P D F 4 1 7   QxeSNRpSQ NP  P D F 4 1 7   2 D   B a r c o d e 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ F l a s h M e m o r y ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  F O R M   2QX[MOn0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ F l a s h M e m o r y ( i n t   S t a t u s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ F l a s h M e m o r y ( B y V a l   S t a t u s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ F l a s h M e m o r y ( B y V a l   S t a t u s   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         S t a t u s ; 
 
         2QX[MOn. 
 
         0   - >   R A M ,   1   - >   F l a s h   M e m o r y 
 
         la:   F l a s h 	gO(uX}TvP6R, d^ǌe͑O(u, &TGR^pX[0RR A M . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ F l a s h M e m o r y ( 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ F l a s h M e m o r y ( 0 ) 
 
 
 
 f:     P  Z _ S e t _ F l a s h M e m o r y   -[  F O R M   2QX[MOn0(WO(u  F O R M   MR
 
         HQWL  Z _ S e t _ F l a s h M e m o r y ( ) . 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ F o r m a t _ N e w ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  F O R M   ( h<h)   
T1z0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ S e t _ F o r m a t _ N e w ( L P C T S T R   F o r m N a m e ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D e c l a r e   S u b   Z _ S e t _ F o r m a t _ N e w ( B y V a l   F o r m a t N a m e   A s   S t r i n g ) 
 
 
 
 Sxe: 
 
         F o r m N a m e ; 
 
             h<h
T1z0
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ F o r m a t _ N e w ( " d e m o " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ F o r m a t _ N e w ( " d e m o " ) 
 
 
 
 f:     P  Z _ S e t _ F o r m a t _ N e w   -[  F O R M   ( h<h)   
T1z0(W-[KN_, Svc|TS  F O R M   RpS. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ D e l _ F o r m a t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   *Rd  F O R M   ( h<h) 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ D e l _ F o r m a t ( i n t   m e m o r y ,   c h a r   F o r m N a m e [ 1 1 ] ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ D e l _ F o r m a t ( B y V a l   n M e m   A s   L o n g ,   _ 
 
             B y V a l   f o r m n a m e   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ D e l _ F o r m a t ( B y V a l   n M e m   A s   I n t e g e r ,   _ 
 
             B y V a l   f o r m n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m e m o r y ; 
 
             2QX[MOn. 
 
             0   - >   R A M     ,   1   - >   F l a s h   M e m o r y . 
 
         F o r m N a m e ; 
 
             h<h
T1z0
NSN1 0 W[. 
 
 
 
 {O: 
 
     V C : 
 
         Z _ D e l _ F o r m a t ( 0 ,   " d e m o " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ D e l _ F o r m a t ( 0 ,   " d e m o " ) 
 
 
 
 f:     P  Z _ D e l _ F o r m a t   S*Rd2QX[pSh_jgQ  F O R M   ( h<h) 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ D e l _ G r a p h i c ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   *Rd2QX[(WpSh_j  R A M   b  F l a s h   M e m o r y   gQvWb_0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ D e l _ G r a p h i c ( i n t   m e m o r y ,   c h a r   G r a p h i c N a m e [ 1 1 ] ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ D e l _ G r a p h i c ( B y V a l   m e m o r y   A s   L o n g ,   _ 
 
             B y V a l   g r a p h i c n a m e   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ D e l _ G r a p h i c ( B y V a l   m e m o r y   A s   I n t e g e r ,   _ 
 
             B y V a l   g r a p h i c n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m e m o r y ; 
 
             2QX[MOn. 
 
             0   - >   R A M ,   1   - >   F l a s h   M e m o r y 
 
         g r a p h i c n a m e ; 
 
             Wb_
T1z0
NSN1 0 W[
 
 
 
 {O: 
 
     V C : 
 
         Z _ D e l _ G r a p h i c ( 0 ,   " g i r l " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ D e l _ G r a p h i c ( 0 ,   " g i r l " ) 
 
 
 
 f:   P  Z _ D e l _ G r a p h i c   S*Rd2QX[pSh_jgQvWb_0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ D r a w _ B o x ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   ku NPFh0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ D r a w _ B o x ( i n t   x ,   i n t   y ,   i n t   w i d t h ,   i n t   h e i g h t ,   i n t   t h i c k n e s s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ D r a w _ B o x ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   w i d t h   A s   L o n g ,   B y V a l   h e i g h t   A s   L o n g ,   B y V a l   t h i c k n e s s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ D r a w _ B o x ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   w i d t h   A s   I n t e g e r ,   B y V a l   h e i g h t   A s   I n t e g e r ,   _ 
 
             B y V a l   t h i c k n e s s   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. 
 
         w i d t h ; 
 
             Fhvw^  0   <   w i d t h   <   9 9 9 9 . 
 
         h e i g h t ; 
 
             Fhv[^  0   <   h e i g h t   <   9 9 9 9 . 
 
         t h i c k n e s s ; 
 
             }hv|0}  >   0 . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ D r a w _ B o x ( 5 0 ,   1 0 0 ,   2 5 0 ,   1 0 0 ,   5 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ D r a w _ B o x ( 5 0 ,   1 0 0 ,   2 5 0 ,   1 0 0 ,   5 ) 
 
 
 
 f:     P  Z _ D r a w _ B o x   Qxegku NPFh0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ D r a w _ L i n e ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   ku Nh}0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ D r a w _ L i n e ( i n t   x ,   i n t   y ,   i n t   w i d t h ,   i n t   h e i g h t ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ D r a w _ L i n e ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   w i d t h   A s   L o n g ,   B y V a l   h e i g h t   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ D r a w _ L i n e ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   w i d t h   A s   I n t e g e r ,   B y V a l   h e i g h t   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. 
 
         w i d t h ; 
 
             }vw^,   0   <   w i d t h   <   9 9 9 9 . 
 
         h e i g h t ; 
 
             }v[^,   0   <   h e i g h t   <   9 9 9 9 . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ D r a w _ B o x ( 5 0 ,   1 0 0 ,   2 5 0 ,   3 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ D r a w _ B o x ( 5 0 ,   1 0 0 ,   2 5 0 ,   3 ) 
 
 
 
 f:     P  Z _ D r a w _ L i n e   Qxegku Nh}0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t _ D L L _ V e r s i o n ( ) 
 
 Z _ G e t _ D L L _ V e r s i o n A ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   S_byQdkQxe^Hr,gǌ
0
 
 
 
 l: 
 
     V C : 
 
         c h a r *   Z _ G e t _ D L L _ V e r s i o n ( i n t   n S h o w M e s s a g e ) ; 
 
         i n t   Z _ G e t _ D L L _ V e r s i o n A ( i n t   n S h o w M e s s a g e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ D L L _ V e r s i o n ( B y V a l   n S h o w M e s s a g e   A s   L o n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ D L L _ V e r s i o n A ( B y V a l   n S h o w M e s s a g e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ D L L _ V e r s i o n ( B y V a l   n S h o w M e s s a g e   A s   I n t e g e r )   A s   S t r i n g 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ D L L _ V e r s i o n A ( B y V a l   n S h o w M e s s a g e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n S h o w M e s s a g e ; 
 
             
o`zos0
 
             0   - >   
Nos01   - >   os0
 
 
 
 PV<P: 
 
         Z _ G e t _ D L L _ V e r s i o n ( ) ;     PVHr,gǌ
W[2N1YWeGRPV  N U L L 0
 
         Z _ G e t _ D L L _ V e r s i o n A ( ) ;     r e t u r n   v e r s i o n   v a l u e . 
 
                                                       ;NHr_  =   ( r e t u r n   v e r s i o n   v a l u e )   /   1 0 0 . 
 
                                                       P[Hr_  =   ( r e t u r n   v e r s i o n   v a l u e )   %   1 0 0 . 
 
 
 
 {O: 
 
     V C : 
 
         i n t   n V e r s i o n ,   n M a i n V e r s i o n ,   n S u b V e r s i o n ; 
 
         n V e r s i o n   =   Z _ G e t _ D L L _ V e r s i o n A ( 1 ) ; 
 
         n M a i n V e r s i o n   =   n V e r s i o n   /   1 0 0 ; 
 
         n S u b V e r s i o n   =   n V e r s i o n   %   1 0 0 ; 
 
     V B :   V B A : 
 
         D i m   n V e r s i o n ,   n M a i n V e r s i o n ,   n S u b V e r s i o n   A s   L o n g 
 
         n V e r s i o n   =   Z _ G e t _ D L L _ V e r s i o n A ( 1 ) 
 
         n M a i n V e r s i o n   =   I n t ( n V e r s i o n   /   1 0 0 ) 
 
         n S u b V e r s i o n   =   n V e r s i o n   M o d   1 0 0 
 
     V B . n e t : 
 
         D i m   n V e r s i o n ,   n M a i n V e r s i o n ,   n S u b V e r s i o n   A s   I n t e g e r 
 
         n V e r s i o n   =   Z _ G e t _ D L L _ V e r s i o n A ( 1 ) 
 
         n M a i n V e r s i o n   =   n V e r s i o n   /   1 0 0 
 
         n S u b V e r s i o n   =   n V e r s i o n   M o d   1 0 0 
 
 
 
 f:   P  Z _ G e t _ D L L _ V e r s i o n   QxeO(uS_byQdkQxe^Hr,gǌ
0
 
         1ue  Z _ G e t _ D L L _ V e r s i o n ( )   /fVPW[2N,   (W  V B   T  V B A   v|v
N,    O(u  
 
         R t l M o v e M e m o r y ( )   SIc6q_MbS_,   dkQ_(WO(u
N	gbS
Nv㖦^,   
 
         Vdk  V B   T  V B A   v|v^p
NO(udkQ_,   ˊ9e(u  Z _ G e t _ D L L _ V e r s i o n A ( ) ,   
 
          N[O(u  Z _ G e t _ D L L _ V e r s i o n ( ) ,   ˊS  M S D N . 
 
         
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t _ G r a p h i c _ C o l o r B M P ( ) 
 
 Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( ) 
 
 Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   \  B M P   WjIcbpp!j_&N\Wb_2QX[(WpSh_jgQv  R A M   b  F l a s h   M e m o r y 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ G e t _ G r a p h i c _ C o l o r B M P ( i n t   x ,   i n t   y ,   i n t   m e m o r y ,   L P C T S T R   f i l e n a m e ) ; 
 
         i n t   Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( i n t   x ,   i n t   y ,   i n t   n W i d t h ,   i n t   n H e i g h t , 
 
             i n t   r o t a t e ,   i n t   m e m _ m o d e ,   L P C T S T R   i d _ n a m e ,   L P C T S T R   f i l e n a m e ) ; 
 
         i n t   Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( i n t   x ,   i n t   y ,   i n t   n W i d t h ,   i n t   n H e i g h t , 
 
             i n t   r o t a t e ,   i n t   m e m _ m o d e ,   L P C T S T R   i d _ n a m e ,   H B I T M A P   h b m ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   m e m o r y   A s   L o n g ,   B y V a l   f i l e n a m e   A s   S t r i n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( B y V a l   x   A s   L o n g ,   _ 
 
             B y V a l   y   A s   L o n g ,   B y V a l   n W i d t h   A s   L o n g ,   B y V a l   n H e i g h t   A s   L o n g ,   _ 
 
             B y V a l   r o t a t e   A s   L o n g ,   B y V a l   m e m _ m o d e   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( B y V a l   x   A s   L o n g ,   _ 
 
             B y V a l   y   A s   L o n g ,   B y V a l   n W i d t h   A s   L o n g ,   B y V a l   n H e i g h t   A s   L o n g ,   _ 
 
             B y V a l   r o t a t e   A s   L o n g ,   B y V a l   m e m _ m o d e   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   h b m   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   m e m o r y   A s   I n t e g e r ,   B y V a l   f i l e n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( B y V a l   x   A s   I n t e g e r ,   _ 
 
             B y V a l   y   A s   I n t e g e r ,   B y V a l   n W i d t h   A s   I n t e g e r ,   B y V a l   n H e i g h t   A s   I n t e g e r ,   _ 
 
             B y V a l   r o t a t e   A s   I n t e g e r ,   B y V a l   m e m _ m o d e   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   f i l e n a m e   A s   S t r i n g )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( B y V a l   x   A s   I n t e g e r ,   _ 
 
             B y V a l   y   A s   I n t e g e r ,   B y V a l   n W i d t h   A s   I n t e g e r ,   B y V a l   n H e i g h t   A s   I n t e g e r ,   _ 
 
             B y V a l   r o t a t e   A s   I n t e g e r ,   B y V a l   m e m _ m o d e   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   h b m   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0
 
         n W i d t h ; 
 
             dkSxeh:ySW.~>e_vWb_[^0 h:yO(uSW[^0
 
         n H e i g h t ; 
 
             dkSxeh:ySW.~>e_vWb_ؚ^0 h:yO(uSWؚ^0
 
         r o t a t e ; 
 
             dkSxeh:yWb_.~>e_eIveT' 0 ' /f  0  ' 1 ' /f9 0  0' 2 ' /f1 8 0  ' 3 ' /f2 7 0  0
 
         m e m o r y ; 
 
             2QX[MOn  0   - >   R A M   1   - >   F l a s h   M e m o r y . 
 
             la: F l a s h 	gO(uX}TvP6R, d^Wb_ǌe͑O(u, &TGR^p\Wb_X[0RR A M 0
 
         i d _ n a m e ; 
 
             f}N NPX%R
T1zX[>eepSh_jgQN_vcO(u  Z _ L o a d _ G r a p h i c ( )   sSS\
W|TSQO0
 
         f i l e n a m e ; 
 
             Wb_j
T1zSS+T_0
 
             <h_YX X X X X X X X . X X X   b  X : \ \ X X X \ \ X X X . X X X 
 
         h b m ; 
 
             G D I   v  H B I T M A P   H A N D L E ,   S/ec  I M A G E _ B I T M A P   <h_0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ G e t _ G r a p h i c _ C o l o r B M P ( 3 0 ,   2 0 ,   0 ,   " b b . b m p " ) ; 
 
         Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( 3 0 ,   2 0 ,   2 0 0 ,   1 5 0 ,   2 ,   1 ,   " b b 1 " ,   " b b . b m p " ) ; / / 1 8 0   a n g l e . 
 
         H A N D L E   h i m a g e   =   L o a d I m a g e ( N U L L , " b b . b m p " , I M A G E _ B I T M A P , 0 , 0 , L R _ L O A D F R O M F I L E ) ; 
 
         Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( 3 0 ,   2 0 ,   2 5 0 ,   8 0 ,   1 ,   1 ,   " b b 2 " ,   ( H B I T M A P ) h i m a g e ) ; / / 9 0   a n g l e . 
 
     V B :   V B A : 
 
         C o n s t   I M A G E _ B I T M A P   =   0 
 
         C o n s t   L R _ L O A D F R O M F I L E   =   & H 1 0 
 
         P r i v a t e   D e c l a r e   F u n c t i o n   L o a d I m a g e   L i b   " u s e r 3 2 "   A l i a s   " L o a d I m a g e A "   ( B y V a l   h I n s t   A s   L o n g ,   _ 
 
                         B y V a l   l p s z   A s   S t r i n g ,   B y V a l   u n 1   A s   L o n g ,   B y V a l   n 1   A s   L o n g ,   B y V a l   n 2   A s   L o n g ,   _ 
 
                         B y V a l   u n 2   A s   L o n g )   A s   L o n g 
 
         P r i v a t e   D e c l a r e   F u n c t i o n   D e l e t e O b j e c t   L i b   " G d i 3 2 "   ( B y V a l   h o   A s   L o n g )   A s   L o n g 
 
 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P ( 3 0 ,   2 0 ,   0 ,   " b b . b m p " ) 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( 3 0 ,   2 0 ,   2 0 0 ,   1 5 0 ,   2 ,   1 ,   " b b 1 " ,   " b b . b m p " )   '   1 8 0   a n g l e . 
 
         D i m   h i m a g e   A s   L o n g 
 
         h i m a g e   =   L o a d I m a g e ( 0 ,   " b b . b m p " ,   I M A G E _ B I T M A P ,   0 ,   0 ,   L R _ L O A D F R O M F I L E ) 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( 3 0 ,   2 0 ,   2 5 0 ,   8 0 ,   1 ,   1 ,   " b b 2 " ,   h i m a g e )   '   9 0   a n g l e . 
 
         I f   h i m a g e   T h e n 
 
                 C a l l   D e l e t e O b j e c t ( h i m a g e ) 
 
         E n d   I f 
 
     V B . n e t : 
 
         C o n s t   I M A G E _ B I T M A P   =   0 
 
         C o n s t   L R _ L O A D F R O M F I L E   =   & H 1 0 
 
         P r i v a t e   D e c l a r e   F u n c t i o n   L o a d I m a g e   L i b   " u s e r 3 2 "   A l i a s   " L o a d I m a g e A "   ( B y V a l   h I n s t   A s   I n t e g e r ,   _ 
 
                         B y V a l   l p s z   A s   S t r i n g ,   B y V a l   u n 1   A s   I n t e g e r ,   B y V a l   n 1   A s   I n t e g e r ,   B y V a l   n 2   A s   I n t e g e r ,   _ 
 
                         B y V a l   u n 2   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P ( 3 0 ,   2 0 ,   0 ,   " b b . b m p " ) 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( 3 0 ,   2 0 ,   2 0 0 ,   1 5 0 ,   2 ,   1 ,   " b b 1 " ,   " b b . b m p " )   '   1 8 0   a n g l e . 
 
         D i m   h i m a g e   A s   I n t e g e r 
 
         h i m a g e   =   L o a d I m a g e ( 0 ,   " b b . b m p " ,   I M A G E _ B I T M A P ,   0 ,   0 ,   L R _ L O A D F R O M F I L E ) 
 
         C a l l   Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( 3 0 ,   2 0 ,   2 5 0 ,   8 0 ,   1 ,   1 ,   " b b 2 " ,   h i m a g e )   '   9 0   a n g l e . 
 
 
 
 f:     P  Z _ G e t _ G r a p h i c _ C o l o r B M P ( )   QxeS8eQNUOMOCQxev  B M P   Wj&NRIc
 
         pў}vppWjpSh_jRpS0
 
         Z _ G e t _ G r a p h i c _ C o l o r B M P E x ( )   T  Z _ G e t _ G r a p h i c _ C o l o r B M P _ H B i t m a p ( )   QxeSZP>e'Y
 
         .~\SeIvRR%RS)R(uj
TS  G D I   v  H B I T M A P   H A N D L E   vuǌeOn0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ I n i t i a l _ S e t t i n g ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   MRnUt0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ I n i t i a l _ S e t t i n g ( i n t   m o d e ,   L P C T S T R   S o u r c e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ I n i t i a l _ S e t t i n g ( B y V a l   m o d e   A s   L o n g ,   _ 
 
             B y V a l   S o u r c e   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ I n i t i a l _ S e t t i n g ( B y V a l   m o d e   A s   I n t e g e r ,   _ 
 
             B y V a l   S o u r c e   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m o d e ; 
 
             xd8eQ!j_<Pp  0   - >   8eQW[2N1   - >   8eQjHh0
 
         S o u r c e ; 
 
             ǌeOnSpW[2NbjHh
T1zS+T_0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         L P C T S T   a a   =   " ^ F O 1 2 0 , 3 0 \ r \ n " ; 
 
         Z _ I n i t i a l _ S e t t i n g ( 0 ,   a a ) ; 
 
             o r 
 
         Z _ I n i t i a l _ S e t t i n g ( 1 ,   " i n i t f i l e . t x t " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D i m   a a   A s   S t r i n g 
 
         a a   =   " ^ F O 1 2 0 , 3 0 "   +   C h r ( 1 3 )   +   C h r ( 1 0 ) 
 
         C a l l   Z _ I n i t i a l _ S e t t i n g ( 0 ,   a a ) 
 
             o r 
 
         C a l l   Z _ I n i t i a l _ S e t t i n g ( 1 ,   " i n i t f i l e . t x t " ) 
 
 
 
 f:     P  Z _ I n i t i a l _ S e t t i n g   QxeMRnUtvR\O/f\ N2N  C o m m a n d   HQpSh
 
         _j1uW[2NbjHh8eQ(WO(uPQxeBfHQ(W  Z _ C r e a t e _ P r n ( )   KN_vQN
 
         QxeKNMRS\OpO(uWKa0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ W r i t e D a t a ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R    (uOzsS\ǌePQbfBf[eQfX[@S-N0
 
 
 
 l
 
     V C : 
 
         i n t   Z _ W r i t e D a t a ( i n t   I s I m m e d i a t e ,   L P C T S T R   p b u f ,   D W O R D   l e n g t h ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ W r i t e D a t a ( B y V a l   I s I m m e d i a t e   A s   L o n g ,   _ 
 
             B y V a l   p b u f   A s   S t r i n g ,   B y V a l   l e n g t h   A s   L o n g )   A s   L o n g     
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ W r i t e D a t a ( B y V a l   I s I m m e d i a t e   A s   I n t e g e r ,   _ 
 
             B y V a l   p b u f   A s   B y t e ( ) ,   B y V a l   l e n g t h   A s   U L o n g )   A s   I n t e g e r 
 
 
 
 Sxe
 
         I s I m m e d i a t e ; 
 
             1 pzsSP,   SPp b u f -NvgQ[8QW;   
 
             0 p\ǌeR0RfX[@S_,   I{|TSZ _ P r i n t _ O u t ( )   BfMbP0
 
         p b u f ; 
 
             Pvǌecj0
 
         l e n g t h ; 
 
             p b u f vǌew^0
 
 
 
 PV<P
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         c o n s t   c h a r   s z n o p 1 [ ]   =   " n o p _ f r o n t \ r \ n " ; 
 
         c o n s t   c h a r   s z n o p 2 [ ]   =   " n o p _ m i d d l e \ r \ n " ; 
 
         Z _ W r i t e D a t a ( 0 ,   s z n o p 2 ,   ( D W O R D ) s t r l e n ( s z n o p 2 ) ) ; 
 
         Z _ W r i t e D a t a ( 1 ,   s z n o p 1 ,   ( D W O R D ) s t r l e n ( s z n o p 1 ) ) ; 
 
     V B :   V B A : 
 
         D i m   s z n o p 1   A s   S t r i n g   =   " n o p _ f r o n t "   +   v b C r L f 
 
         D i m   s z n o p 2   A s   S t r i n g   =   " n o p _ m i d d l e "   +   v b C r L f 
 
         C a l l   Z _ W r i t e D a t a ( 0 ,   s z n o p 2 ,   L e n ( s z n o p 2 ) ) 
 
         C a l l   Z _ W r i t e D a t a ( 1 ,   s z n o p 1 ,   L e n ( s z n o p 1 ) )     
 
     V B . n e t : 
 
         D i m   e n c A s c I I   =   S y s t e m . T e x t . E n c o d i n g . A S C I I 
 
         D i m   s z n o p 1   A s   S t r i n g   =   " n o p _ f r o n t "   +   v b C r L f 
 
         D i m   s z n o p 2   A s   S t r i n g   =   " n o p _ m i d d l e "   +   v b C r L f 
 
         C a l l   Z _ W r i t e D a t a ( 0 ,   e n c A s c I I . G e t B y t e s ( s z n o p 2 ) ,   s z n o p 2 . L e n g t h ) 
 
         C a l l   Z _ W r i t e D a t a ( 1 ,   e n c A s c I I . G e t B y t e s ( s z n o p 1 ) ,   s z n o p 1 . L e n g t h ) 
 
 
 
 f    dkQ_(uO\O(u`
\pSh_jNTvc6RcNbNUORpSǌe,   vS)R(udk
 
         Q_O[b0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ R e a d D a t a ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R    S_pSh_j-Nvǌe0
 
 
 
 l
 
     V C : 
 
         i n t   Z _ R e a d D a t a ( L P T S T R   p b u f ,   D W O R D   l e n g t h ,   D W O R D   d w T i m e o u t m s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ R e a d D a t a ( B y V a l   p b u f   A s   S t r i n g ,   B y V a l   l e n g t h   A s   L o n g ,   _ 
 
             B y V a l   d w T i m e o u t m s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ R e a d D a t a ( B y V a l   p b u f   A s   B y t e ( ) ,   B y V a l   l e n g t h   A s   U L o n g ,   _ 
 
             B y V a l   d w T i m e o u t m s   A s   U L o n g )   A s   I n t e g e r 
 
 
 
 Sxe
 
         p b u f ; 
 
             c6eVPǌevcj0Yg[/fzzcj,   GR
NkXǌe0
 
         l e n g t h ; 
 
             Svǌe'Y\0
 
         d w T i m e o u t m s ; 
 
             xeBf,   _N1\/fSǌe gwvBf,   UMOpm s 0
 
 
 
 PV<P
 
         ]Svǌe'Y\0
 
 
 
 {O
 
     V C : 
 
         i n t   r e t ; 
 
         c h a r   t e m p [ 1 0 0 ] = { 0 } ; 
 
         Z _ W r i t e D a t a ( 1 ,   " ~ H S \ r \ n " ,   5 ) ; / / ~ H S 
 
         r e t   =   Z _ R e a d D a t a ( t e m p ,   8 2 ,   1 0 0 0 ) ; / / 1   s e c o n d . 
 
     V B :   V B A : 
 
         D i m   r e t   A s   I n t e g e r 
 
         D i m   t e m p   A s   S t r i n g 
 
         t e m p   =   S p a c e ( 1 0 0 ) 
 
         t e m p   =   " ~ H S \ r \ n " 
 
         Z _ W r i t e D a t a ( 1 ,   t e m p ,   5 )       ' ~ H S 
 
         r e t   =   Z _ R e a d D a t a ( p b u f ,   8 2 ,   1 0 0 0 )       ' 1   s e c o n d . 
 
     V B . n e t : 
 
         D i m   r e t   A s   I n t e g e r 
 
         D i m   t e m p ( 1 0 0 )   A s   B y t e 
 
         Z _ W r i t e D a t a ( 1 ,   e n c A s c I I . G e t B y t e s ( " ~ H S \ r \ n " ) ,   5 )       ' ~ H S 
 
         r e t   =   Z _ R e a d D a t a ( p b u f ,   8 2 ,   1 0 0 0 )       ' 1   s e c o n d . 
 
 
 
 f    dkQ_(uOSpSh_jvVPǌe,   @bNˊlaO(uv
W/f&T	gǌeVPv
 
         R0ˊTZ _ W r i t e D a t a ( )   QxeMTO(u,   &NS" A r g o x   p r o g r a m m e r ' s   m a n u a l " 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ L o a d _ G r a p h i c ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   RpS NPWb_0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ L o a d _ G r a p h i c ( i n t   x ,   i n t   y ,   i n t   m e m o r y ,   c h a r   g r a p h i c n a m e [ 1 1 ] ,   i n t   h o r i ,   
 
             i n t   v e r t ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ L o a d _ G r a p h i c ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   m e m o r y   A s   L o n g ,   B y V a l   g r a p h i c n a m e   A s   S t r i n g ,   B y V a l   h o r i   A s   L o n g ,   _ 
 
             B y V a l   v e r t   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ L o a d _ G r a p h i c ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   m e m o r y   A s   I n t e g e r ,   B y V a l   g r a p h i c n a m e   A s   S t r i n g ,   B y V a l   h o r i   A s   I n t e g e r ,   _ 
 
             B y V a l   v e r t   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0( 1   d o t   =   0 . 1 2 5   m m ) 
 
         m e m o r y ; 
 
             2QX[MOn.   0   - >   R A M   1   - >   F l a s h   M e m o r y . 
 
             la: F l a s h 	gO(uX}TvP6R, d^Wb_ǌe͑O(u, &TGR^p\Wb_X[0RR A M . 
 
         g r a p h i c n a m e ; 
 
             Wb_j
T1z,    g'Y1 0 PW[CQ0
 
         h o r i ; 
 
             Wv>e'Y
Pxe.   1   < =   h o r i   < =   1 0   -p1 . 
 
         v e r t ; 
 
             4ls^>e'Y
Pxe.   1   < =   v e r t   < =   1 0   -p1 . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ L o a d _ G r a p h i c ( 5 0 ,   3 0 ,   0 ,   " p h o n e " ,   1 ,   1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ L o a d _ G r a p h i c ( 5 0 ,   3 0 ,   0 ,   " p h o n e " ,   1 ,   1 ) 
 
 
 
 f:     P  Z _ L o a d _ G r a p h i c   QxegRpS NPWb_Wb__HQWL
 
         Z _ G e t _ G r a p h i c   	eQpSh_jgQv  R A M   b  f l a s h   m e m o r y 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ O p e n _ C h i n e s e F o n t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _UO(u-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ O p e n _ C h i n e s e F o n t ( c h a r *   p a t h ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ O p e n _ C h i n e s e F o n t ( B y V a l   p a t h   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ O p e n _ C h i n e s e F o n t ( B y V a l   p a t h   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         p a t h ; 
 
             -NeޞwcW[WjHhOn_0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) 
 
 
 
 f:     P  Z _ O p e n _ C h i n e s e F o n t   Qxe_U-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) O
 
         Z _ P r n _ T e x t _ C h i n e s e   QxeO(u0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r i n t _ F o r m ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   RpS NP  F O R M   ( h<h) &N8eQ  F O R M   v
T1z&N-[_!kxeRpSNxe0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r i n t _ F o r m ( i n t   l a b s e t ,   i n t   c o p i e s ,   i n t   m e m ,   c h a r   f o r m o u t [ 1 1 ] ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ F o r m ( B y V a l   l a b s e t   A s   L o n g ,   B y V a l   c o p i e s   A s   L o n g ,   _ 
 
             B y V a l   m e m   A s   L o n g ,   B y V a l   f o r m o u t   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ F o r m ( B y V a l   l a b s e t   A s   I n t e g e r ,   B y V a l   c o p i e s   A s   I n t e g e r ,   _ 
 
             B y V a l   m e m   A s   I n t e g e r ,   B y V a l   f o r m o u t   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         l a b s e t ; 
 
             RpSvNxe{
W1 ^3 2 7 6 7 0
 
         c o p i e s ; 
 
             vNxe{
W1 ^3 2 7 6 7 0
 
         m e m ; 
 
             F o r m 2QX[MOn. 
 
             0   - >   R A M   1   - >   F l a s h   M e m o r y . 
 
         f o r m o u t ; 
 
             h<h
T1zTeKNMR	eQv  F O R M   
T1zbSHQ2QX[(WpSh_jgQv  F O R M 0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ P r i n t _ F o r m ( 3 ,   2 ,   0 ,   " d e m o " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ P r i n t _ F o r m ( 3 ,   2 ,   0 ,   " d e m o " ) ; 
 
 
 
 f:     P  Z _ P r i n t _ F o r m   Qxeg@b	gǌeSh<h0R  P r i n t e r PQxeO(uMRHQ
 
         WL  Z _ S e t _ F o r m a t _ N e w ( ) &N(W@b	gQxeKN_Z _ C l o s e P r n ( )   KNMRWL0vuO
 
         (udkQxeBf1\
NWL  Z _ P r i n t _ O u t ( ) 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r i n t _ O u t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   RpS@b	gǌe0
 
 P S : ˊO(uZ _ P r i n t _ O u t Q u a l i t y ( ) Q_. 
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r i n t _ O u t ( i n t   s e t , i n t   c o p i e s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ O u t ( B y V a l   s e t s   A s   L o n g ,   B y V a l   c o p i e s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ O u t ( B y V a l   s e t s   A s   I n t e g e r ,   B y V a l   c o p i e s   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         s e t s ; 
 
             f\PTRv<P. 
 
         c o p i e s ; 
 
             ǌeRpSNxe. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ P r i n t _ O u t ( 1 ,   1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ P r i n t _ O u t ( 1 ,   1 ) 
 
 
 
 f:     P  Z _ P r i n t _ O u t   Qxeg@b	gǌe0R  P r i n t e r PQxe(W@b	gQxeKN_
 
         Z _ C l o s e P r n ( )   KNMRWL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r n _ B a r c o d e ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NPhxTR
N_R0
 
 
 
 l: 
 
     V C : 
 
         Z _ P r n _ B a r c o d e ( i n t   x ,   i n t   y ,   i n t   o r i ,   i n t   n a r r o w ,   i n t   w i d t h ,   i n t   h e i g h t ,   c h a r   b a r _ t y p e ,   
 
             i n t   i n c r e a s e ,   L P C T S T R   d a t a ,   c h a r   p 1 ,   c h a r   p 2 ,   c h a r   p 3 ,   c h a r   p 4 ,   c h a r   p 5 ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ B a r c o d e ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   B y V a l   o r i   A s   L o n g ,   _ 
 
             B y V a l   n a r r o w   A s   L o n g ,   B y V a l   w i d t h   A s   L o n g ,   B y V a l   h e i g h t   A s   L o n g ,   _ 
 
             B y V a l   b a r _ t y p e   A s   B y t e ,   B y V a l   i n c r e a s e   A s   L o n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   p 1   A s   B y t e ,   B y V a l   p 2   A s   B y t e ,   B y V a l   p 3   A s   B y t e ,   B y V a l   p 4   A s   B y t e ,   _ 
 
             B y V a l   p 5   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ B a r c o d e ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   o r i   A s   I n t e g e r ,   B y V a l   n a r r o w   A s   I n t e g e r ,   B y V a l   w i d t h   A s   I n t e g e r ,   _ 
 
             B y V a l   h e i g h t   A s   I n t e g e r ,   B y V a l   b a r _ t y p e   A s   B y t e ,   B y V a l   i n c r e a s e   A s   I n t e g e r ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   p 1   A s   B y t e ,   B y V a l   p 2   A s   B y t e ,   B y V a l   p 3   A s   B y t e ,   _ 
 
             B y V a l   p 4   A s   B y t e ,   B y V a l   p 5   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0( 1 d o t   =   0 . 1 2 5 m m ) 
 
         o r i ; 
 
             RpSeT[MO' 1 ' /f  0  ' 2 ' /f9 0  0' 3 ' /f1 8 0  ' 4 ' /f2 7 0  
 
         n a r r o w ; 
 
             N A R R O W   b a r   [^. 
 
         w i d t h ; 
 
             W I D E   b a r   [^. 
 
         h e i g h t ; 
 
             B a r   c o d e   ؚ^. 
 
         b a r _ t y p e ; 
 
             B a r   c o d e   W_  ( r e f e r   t o   b e l o w   t a b l e   - >   T y p e ) . 
 
         i n c r e a s e ; 
 
             Xϑ. 
 
         d a t a ; 
 
             ǌeW[2N. 
 
         p 1 , p 2 , p 3 , p 4 , p 5 ; 
 
               B a r c o d e   v
NT, 	g
NTva. 
 
             R%P%P%P%P%d%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%U%
 
             %T y p e %                hx.z^                        %                    O    (u    S    xe                    %
 
             ^%P%P%P%P%j%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%j%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%a%
 
             %        %                                                        %p 1 : xx      Y : 1 MOxe    N : 2 MOxe            %
 
             %  1     %C o d e   1 1                                           %p 2 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 3 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpShxǌe                              %
 
             %  2     %I n t e r l e a v e d   2   o f   5                     %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 3 : /f&TRpSxx                                  %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpSxx                                  %
 
             %  3     %C o d e   3 9                                           %p 2 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 3 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  8     %E A N - 8                                               %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpShxǌe                              %
 
             %  9     %U P C - E                                               %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 3 : /f&TRpSxx                                  %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpShxǌe                              %
 
             %  A     %C o d e 9 3                                             %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 3 : /f&TRpSxx                                  %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %  C     %C o d e   1 2 8   S u b s e t   A , B , C               %p 3 : /f&TRpSU C C xx                            %
 
             %        %C o d e   1 2 8   U C C                                 %p 4 : C o d e   1 2 8   s u b s e t   A , B , C   b              %
 
             %        %                                                        %      C o d e   1 2 8   U C C                                       %
 
             %        %                                                        %      N : C o d e   1 2 8       U : C o d e   1 2 8   U C C         %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  E     %E A N - 1 3                                             %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  I     %I n d u s t r i a l   2   o f   5                       %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  J     %S t a n d a r d   2   o f   5                           %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpSxx                                  %
 
             %        %                                                        %p 2 : /f&TRpShxǌe                              %
 
             %  K     %A N S I   C o d a b a r                                 %p 3 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 4 : YW[CQ                                              %
 
             %        %                                                        %p 5 : P}_gW[CQ                                              %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  L     %L O G M A R S   C o d e                                 %p 1 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : xx    A : !qxx                          %
 
             %        %                                                        %                      B : 1   M o d   1 0                           %
 
             %        %                                                        %                      C : 2   M o d   1 0                           %
 
             %  M     %M S I   C o d e                                         %                      D : 1   M o d   1 0   a n d   1   M o d   1 1 %
 
             %        %                                                        %p 2 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 3 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 4 : hxǌe/f&TRpSxx                  %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpSxx                                  %
 
             %  P     %P l e s s e y                                           %p 2 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 3 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  S     %U P C / E A N   E x t e n s i o n s                     %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %        %                                                        %p 1 : /f&TRpShxǌe                              %
 
             %  U     %U P C - A   C o d e                                     %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             %        %                                                        %p 3 : /f&TRpSxx                                  %
 
             % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % %<% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %$%
 
             %  Z     %P O S T E N E T   C o d e                               %p 1 : /f&TRpShxǌe                              %
 
             %        %                                                        %p 2 : hxǌe/f&TRpS(W  B a r c o d e   
Ne%
 
             % % % % %4% % % % % % % % % % % % % % % % % % % % % % % % % % % % %4% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %%
 
             P;:   p 1 , p 2 , p 3 , p 4 , p 5   *g;f,   Y : RpS    N : 
NRpS,   Y*gO(u0RGRSNa8eQ<P. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ P r n _ B a r c o d e ( 6 5 0 ,   1 5 ,   1 ,   2 ,   2 ,   5 1 ,   ' C ' ,   0 ,   " 1 2 3 4 5 6 7 " ,   ' Y ' ,   ' N ' ,   ' N ' ,   ' N ' ,   ' N ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ P r n _ B a r c o d e ( 6 5 0 ,   1 5 ,   1 ,   2 ,   2 ,   5 1 ,   A s c ( " C " ) ,   0 ,   " 1 2 3 4 5 6 7 " ,   A s c ( " Y " ) ,   _ 
 
             A s c ( " N " ) ,   A s c ( " N " ) ,   A s c ( " N " ) ,   A s c ( " N " ) ) 
 
 
 
 f:     P  Z _ P r n _ B a r c o d e   QxeSNRpSQ NPyr[  B a r c o d e . 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r n _ T e x t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NLeW[TR
N_R0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r n _ T e x t ( i n t   x , i n t   y , i n t   o r i , c h a r   f o n t , i n t   h e i g h t , 
 
                 i n t   w i d t h , i n t   i n c r e a s e , L P C T S T R   d a t a ) ; 
 
     V B : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   B y V a l   o r i 
 
                 A s   I n t e g e r ,   B y V a l   f o n t   A s   B y t e ,   B y V a l   h e i g h t   A s   I n t e g e r ,   B y V a l   w i d t h 
 
                 A s   I n t e g e r ,   B y V a l   n u m e r i c   A s   I n t e g e r ,   B y V a l   d a t a   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0( 1   d o t   =   0 . 1 2 5   m m ) 
 
         o r i ; 
 
             RpSeT[MO' 1 ' /f  0  ' 2 ' /f9 0  0' 3 ' /f1 8 0  ' 4 ' /f2 7 0  
 
         f o n t ; 
 
             xdW[b_,   A ^H : ޞcW[b_,   0 , P ^V : }'`W[b_. 
 
             ޞcW['Y\: 
 
             R%P%P%P%P%d%P%P%P%P%P%P%P%P%U%
 
             %F o n t %    H   *   W   %
 
             ^%P%P%P%P%j%P%P%P%P%P%P%P%P%a%
 
             %  A     %    9   *     5 %
 
             % % % % %<% % % % % % % % %$%
 
             %  B     %  1 1   *     7 %
 
             % % % % %<% % % % % % % % %$%
 
             %C , D   %  1 8   *   1 0 %
 
             % % % % %<% % % % % % % % %$%
 
             %  E     %  2 8   *   1 5 %
 
             % % % % %<% % % % % % % % %$%
 
             %  F     %  2 6   *   1 3 %
 
             % % % % %<% % % % % % % % %$%
 
             %  G     %  6 0   *   4 0 %
 
             % % % % %<% % % % % % % % %$%
 
             %  H     %  2 1   *   1 3 %
 
             % % % % %4% % % % % % % % %%
 
         h e i g h t ; 
 
             4ls^>e'Y. 
 
         w i d t h ; 
 
             Wv>e'Y. 
 
             f o n t   A ^H   GR8eQ  F o n t   S i z e   
Pxe,    g'Y<Pp  1 0   
P. 
 
             f o n t   0 ,   P ^V   GRh:yޞxe,   {
W: 1 ^1 5 0 0 ,   FOTW[b_ g'Y<PT	g
NT. 
 
         i n c r e a s e ; 
 
             Xϑ. 
 
         d a t a ; 
 
             ǌeW[2N. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ P r n _ T e x t ( 5 0 ,   1 1 0 ,   1 ,   ' A ' ,   9 0 ,   1 0 ,   0 ,   " A 1 2 3 4 5 6 " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ P r n _ T e x t ( 5 0 ,   1 1 0 ,   1 ,   A s c ( " A " ) ,   9 0 ,   1 0 ,   0 ,   " A 1 2 3 4 5 6 " ) 
 
 
 
 f:     P  Z _ P r n _ T e x t   QxeSNRpSQ NLeW[TR
N_R0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r n _ T e x t _ C h i n e s e ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NLeW[O(u-NeޞwcW[WjHh  ( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r n _ T e x t _ C h i n e s e ( i n t   x ,   i n t   y ,   i n t   f o n t t y p e ,   L P C T S T R   i d _ n a m e ,   L P C T S T R   d a t a ,   
 
             i n t   m e m ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ C h i n e s e ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   f o n t t y p e   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   m e m   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ C h i n e s e ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   f o n t t y p e   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   m e m   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0
 
         f o n t t y p e ; 
 
             wcW[Wxd0
 
             0   - >   1 6 * 1 5 01   - >   2 4 * 2 4 0
 
         i d _ n a m e ; 
 
             f}N NPX%R
T1zX[>eepSh_jgQN_vcO(u  Z _ L o a d _ G r a p h i c ( )   
 
             sSS\
W|TSQO0
 
         d a t a ; 
 
             eW[gQ[0
 
         m e m ; 
 
             Wb_2QX[MOn0
 
             0   - >   R A M ,   1   - >   F l a s h   M e m o r y . 
 
             la:   F l a s h 	gO(uX}TvP6R, d^Wb_ǌe͑O(u, &TGR^p\Wb_X[0RR A M 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) ; 
 
         Z _ P r n _ T e x t _ C h i n e s e ( 1 0 0 ,   1 0 0 ,   0 ,   " A 0 1 " ,   " W[)RvvuMR!B#C$D" ,   0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) 
 
         C a l l   Z _ P r n _ T e x t _ C h i n e s e ( 1 0 0 ,   1 0 0 ,   0 ,   " A 0 1 " ,   " W[)RvvuMR!B#C$D" ,   0 ) 
 
 
 
 f:   P  Z _ P r n _ T e x t _ C h i n e s e   QxeSNpSQ NLeW[O(u-NeޞwcW[WjHh
 
         ( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r n _ T e x t _ T r u e T y p e ( ) 
 
 Z _ P r n _ T e x t _ T r u e T y p e _ W ( ) 
 
 Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( ) 
 
 Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NL  T r u e   T y p e   F o n t   eW[0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r n _ T e x t _ T r u e T y p e ( i n t   x ,   i n t   y ,   i n t   F S i z e ,   L P C T S T R   F T y p e ,   i n t   F s p i n , 
 
             i n t   F W e i g h t ,   i n t   F I t a l i c ,   i n t   F U n l i n e ,   i n t   F S t r i k e O u t ,   L P C T S T R   i d _ n a m e , 
 
             L P C T S T R   d a t a ,   i n t   m e m _ m o d e ) ; 
 
         i n t   Z _ P r n _ T e x t _ T r u e T y p e _ W ( i n t   x ,   i n t   y ,   i n t   F H e i g h t ,   i n t   F W i d t h ,   L P C T S T R   F T y p e ,   
 
             i n t   F s p i n ,   i n t   F W e i g h t ,   i n t   F I t a l i c ,   i n t   F U n l i n e ,   i n t   F S t r i k e O u t ,   L P C T S T R   i d _ n a m e ,   
 
             L P C T S T R   d a t a ,   i n t   m e m _ m o d e ) ; 
 
         i n t   Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( i n t   x ,   i n t   y ,   i n t   F S i z e ,   L P C T S T R   F T y p e ,   i n t   F s p i n ,   
 
             i n t   F W e i g h t ,   i n t   F I t a l i c ,   i n t   F U n l i n e ,   i n t   F S t r i k e O u t ,   L P C T S T R   i d _ n a m e ,   
 
             L P C W S T R   d a t a ,   i n t   f o r m a t ,   i n t   m e m _ m o d e ) ; 
 
         i n t   Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( i n t   x ,   i n t   y ,   i n t   F S i z e ,   L P C T S T R   F T y p e ,   i n t   F s p i n ,   
 
             i n t   F W e i g h t ,   i n t   F I t a l i c ,   i n t   F U n l i n e ,   i n t   F S t r i k e O u t ,   L P C T S T R   i d _ n a m e ,   
 
             L P C T S T R   d a t a ,   i n t   f o r m a t ,   i n t   m e m _ m o d e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   F S i z e   A s   L o n g ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   L o n g ,   _ 
 
             B y V a l   F W e i g h t   A s   L o n g ,   B y V a l   F I t a l i c   A s   L o n g ,   B y V a l   F U n l i n e   A s   L o n g ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   m e m   A s   L o n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ W ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   F H e i g h t   A s   L o n g ,   B y V a l   F W i d t h   A s   L o n g ,   B y V a l   F T y p e   A s   S t r i n g ,   _ 
 
             B y V a l   F s p i n   A s   L o n g ,   B y V a l   F W e i g h t   A s   L o n g ,   B y V a l   F I t a l i c   A s   L o n g ,   _ 
 
             B y V a l   F U n l i n e   A s   L o n g ,   B y V a l   F S t r i k e O u t   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   m e m   A s   L o n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   F S i z e   A s   L o n g ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   L o n g ,   _ 
 
             B y V a l   F W e i g h t   A s   L o n g ,   B y V a l   F I t a l i c   A s   L o n g ,   B y V a l   F U n l i n e   A s   L o n g ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y R e f   d a t a   A s   B y t e ,   _ 
 
             B y V a l   f o r m a t   A s   L o n g ,   B y V a l   m e m _ m o d e   A s   L o n g )   A s   L o n g 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
             B y V a l   F S i z e   A s   L o n g ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   L o n g ,   _ 
 
             B y V a l   F W e i g h t   A s   L o n g ,   B y V a l   F I t a l i c   A s   L o n g ,   B y V a l   F U n l i n e   A s   L o n g ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   L o n g ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y R e f   d a t a   A s   B y t e ,   _ 
 
             B y V a l   f o r m a t   A s   L o n g ,   B y V a l   m e m _ m o d e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   F S i z e   A s   I n t e g e r ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   I n t e g e r ,   _ 
 
             B y V a l   F W e i g h t   A s   I n t e g e r ,   B y V a l   F I t a l i c   A s   I n t e g e r ,   B y V a l   F U n l i n e   A s   I n t e g e r ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   m e m   A s   I n t e g e r )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ W ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   F H e i g h t   A s   I n t e g e r ,   B y V a l   F W i d t h   A s   I n t e g e r ,   B y V a l   F T y p e   A s   S t r i n g ,   _ 
 
             B y V a l   F s p i n   A s   I n t e g e r ,   B y V a l   F W e i g h t   A s   I n t e g e r ,   B y V a l   F I t a l i c   A s   I n t e g e r ,   _ 
 
             B y V a l   F U n l i n e   A s   I n t e g e r ,   B y V a l   F S t r i k e O u t   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   m e m   A s   I n t e g e r )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   F S i z e   A s   I n t e g e r ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   I n t e g e r ,   _ 
 
             B y V a l   F W e i g h t   A s   I n t e g e r ,   B y V a l   F I t a l i c   A s   I n t e g e r ,   B y V a l   F U n l i n e   A s   I n t e g e r ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   B y t e ( ) ,   _ 
 
             B y V a l   f o r m a t   A s   I n t e g e r ,   B y V a l   m e m _ m o d e   A s   I n t e g e r )   A s   I n t e g e r 
 
         D e c l a r e   F u n c t i o n   Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   F S i z e   A s   I n t e g e r ,   B y V a l   F T y p e   A s   S t r i n g ,   B y V a l   F s p i n   A s   I n t e g e r ,   _ 
 
             B y V a l   F W e i g h t   A s   I n t e g e r ,   B y V a l   F I t a l i c   A s   I n t e g e r ,   B y V a l   F U n l i n e   A s   I n t e g e r ,   _ 
 
             B y V a l   F S t r i k e O u t   A s   I n t e g e r ,   B y V a l   i d _ n a m e   A s   S t r i n g ,   B y V a l   d a t a   A s   B y t e ( ) ,   _ 
 
             B y V a l   f o r m a t   A s   I n t e g e r ,   B y V a l   m e m _ m o d e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^jUMO:   P }0
 
         y ; 
 
             Y   ^jUMO:   P }0
 
         F S i z e ; 
 
             T r u e T y p e   f o n t   s i z e UMOpޞ( d o t ) 0
 
         F H e i g h t ; 
 
             W[Wؚ^UMOpޞ( d o t ) 0
 
         F W i d t h ; 
 
             W[W[^UMOpޞ( d o t ) 0
 
             F S i z e   /   F H e i g h t   /   F W i d t h   =   ( d p i   *   p o i n t )   /   7 2 . 
 
         F T y p e ; 
 
             T r u e T y p e   f o n t   W[W
T1z0
 
         F s p i n ; 
 
             T r u e T y p e   f o n t   W[ԚeI01   - >   0 ,   2   - >   9 0 ,   3   - >   1 8 0 ,   4   - >   2 7 0 
 
         F W e i g h t ; 
 
             T r u e T y p e   f o n t   W[Ԛ|0}0
 
             0   a n d   N U L L   a n d   4 0 0   - >   4 0 0   jn0
 
             1 0 0   - >   ^8^0}02 0 0   - >   ui0}0
 
             3 0 0   - >   0}        05 0 0   - >   -NI{0
 
             6 0 0   - >   JS|    07 0 0   - >   |    0
 
             8 0 0   - >   yr|    09 0 0   - >   ўԚ0
 
         F I t a l i c ; 
 
             T r u e T y p e   f o n t   W[ԚeԚ00   - >   F A L S E 01   - >   T R U E 0
 
         F U n l i n e ; 
 
             T r u e T y p e   f o n t   W[ԚR^}00   - >   F A L S E 01   - >   T R U E 0
 
         F S t r i k e O u t ; 
 
             T r u e T y p e   f o n t   W[ԚR*Rd}00   - >   F A L S E 01   - >   T R U E 0
 
         i d _ n a m e ; 
 
             f}N NPX%R
T1zX[>eepSh_jgQN_vcO(u  Z _ L o a d _ G r a p h i c ( )   sSS\
W|TSQO0
 
         d a t a ; 
 
             eW[gQ[0
 
             Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( ) Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( ) 
 
             @b8eQvd a t a <h_pU T F - 8 0U T F - 1 6 bU n i c o d e   b i g   e n d i a n KNW[2NN p0 P}>\0
 
         f o r m a t ; 
 
             zl[U n i c o d e   d a t a v㉼xe_0
 
             0   - >   1uW[2N-vB O M ( B y t e   O r d e r   M a r k ) zl[0
 
             1   - >   U T F - 1 6 0
 
             2   - >   U n i c o d e   b i g   e n d i a n 0
 
             3   - >   U T F - 8 0
 
         m e m ; 
 
             Wb_2QX[MOn00   - >   R A M ,   1   - >   F l a s h   M e m o r y 0
 
             la:   F l a s h 	gO(uX}TvP6R, d^Wb_ǌe͑O(u, &TGR^p\Wb_X[0RR A M . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         c h a r   * p b u f   =   n e w   c h a r [ 1 2 8 ] ; 
 
         Z _ P r n _ T e x t _ T r u e T y p e ( 3 0 ,   1 0 0 ,   3 0 ,   " A r i a l " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A A " ,   " T r u e T y p e   F o n t " ,   0 ) ; 
 
             / / s a v e   i n   p r i n t e r . 
 
         Z _ P r n _ T e x t _ T r u e T y p e _ W ( 3 0 ,   1 6 0 ,   2 0 ,   2 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A B " ,   
 
             " T T _ W :   YW[CQ,nf" ,   0 ) ; 
 
         Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( 3 0 ,   2 2 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A C " , 
 
             L " T T _ U n i :   YW[CQ,nf" ,   1 ,   0 ) ; / / U T F - 1 6 
 
         s t r c p y ( p b u f ,   " \ x F F \ x F E " ) ; / / U T F - 1 6 . 
 
         m e m c p y ( & p b u f [ 2 ] ,   ( c h a r   * ) L " T T _ U n i B :   YW[CQ,nf" ,   1 5 * 2 ) ; / / c o p y   m u t i l   b y t e . 
 
         Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( 3 0 ,   2 8 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A D " ,   
 
             p b u f ,   0 ,   0 ) ; / / B y t e   O r d e r   M a r k . 
 
     V B :   V B A : 
 
         D i m   b u f f 1 ( 1 2 8 )   A s   B y t e 
 
         D i m   b u f f 2 ( )   A s   B y t e 
 
         D i m   i   A s   L o n g 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e ( 3 0 ,   1 0 0 ,   3 0 ,   " A r i a l " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A A " ,   _ 
 
             " T r u e T y p e   F o n t " ,   0 )   ' s a v e   i n   p r i n t e r . 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ W ( 3 0 ,   1 6 0 ,   2 0 ,   2 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A B " ,   " T T _ W :   YW[CQ,nf" ,   0 ) 
 
         b u f f 2   =   S t r C o n v ( " T T _ U n i :   YW[CQ,nf" ,   v b N a r r o w )   
 
             ' C o n v e r t s   U N I C O D E ( w i d e   c h a r a c t e r s )   t o   s i n g l e - b y t e   c h a r a c t e r s . 
 
         F o r   i   =   L B o u n d ( b u f f 2 )   T o   U B o u n d ( b u f f 2 ) 
 
                 b u f f 1 ( i )   =   b u f f 2 ( i ) 
 
         N e x t   i 
 
         b u f f 1 ( 2 6 )   =   0   ' n u l l . 
 
         b u f f 1 ( 2 7 )   =   0 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( 3 0 ,   2 2 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A C " ,   b u f f 1 ( 0 ) ,   1 ,   0 )   ' U T F - 1 6 
 
         b u f f 1 ( 0 )   =   2 5 5   ' U T F - 1 6 . 
 
         b u f f 1 ( 1 )   =   2 5 4 
 
         b u f f 2   =   S t r C o n v ( " T T _ U n i B :   YW[CQ,nf" ,   v b N a r r o w )   
 
             ' C o n v e r t s   U N I C O D E ( w i d e   c h a r a c t e r s )   t o   s i n g l e - b y t e   c h a r a c t e r s . 
 
         F o r   i   =   L B o u n d ( b u f f 2 )   T o   U B o u n d ( b u f f 2 ) 
 
                 b u f f 1 ( i   +   2 )   =   b u f f 2 ( i ) 
 
         N e x t   i 
 
         b u f f 1 ( 3 0 )   =   0   ' n u l l . 
 
         b u f f 1 ( 3 1 )   =   0 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( 3 0 ,   2 8 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A D " ,   b u f f 1 ( 0 ) ,   0 ,   0 )   ' B y t e   O r d e r   M a r k . 
 
     V B . n e t : 
 
         D i m   p b u f ( 1 2 8 )   A s   B y t e 
 
         D i m   e n c U n i c o d e   =   S y s t e m . T e x t . E n c o d i n g . U n i c o d e 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e ( 3 0 ,   1 0 0 ,   3 0 ,   " A r i a l " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   " A A " ,   _ 
 
             " T r u e T y p e   F o n t " ,   0 )   ' s a v e   i n   p r i n t e r . 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ W ( 3 0 ,   1 6 0 ,   2 0 ,   2 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A B " ,   " T T _ W :   YW[CQ,nf" ,   0 ) 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ U n i ( 3 0 ,   2 2 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A C " ,   e n c U n i c o d e . G e t B y t e s ( " T T _ U n i :   YW[CQ,nf" ) ,   1 ,   0 )   ' U T F - 1 6 
 
         p b u f ( 0 )   =   2 5 5   ' U T F - 1 6 . 
 
         p b u f ( 1 )   =   2 5 4 
 
         e n c U n i c o d e . G e t B y t e s ( " T T _ U n i B :   YW[CQ,nf" ,   0 ,   1 4 ,   p b u f ,   2 )   ' c o p y   m u t i l   b y t e . 
 
         p b u f ( 3 0 )   =   0   ' n u l l . 
 
         p b u f ( 3 1 )   =   0 
 
         C a l l   Z _ P r n _ T e x t _ T r u e T y p e _ U n i B ( 3 0 ,   2 8 0 ,   3 0 ,   " T i m e s   N e w   R o m a n " ,   1 ,   4 0 0 ,   0 ,   0 ,   0 ,   _ 
 
             " A D " ,   p b u f ,   0 ,   0 )   ' B y t e   O r d e r   M a r k . 
 
 
 
 f:     P  Z _ P r n _ T e x t _ T r u e T y p e   QxeSNpSQ NL  T r u e   T y p e   F o n t   eW[0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C l e a r _ M e m o r y ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   nd  P r i n t e r   gQ  R A M   M e m o r y   vǌe0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ C l e a r _ M e m o r y ( v o i d ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D e c l a r e   S u b   Z _ C l e a r _ M e m o r y ( ) 
 
 
 
 {O: 
 
     V C : 
 
         Z _ C l e a r _ M e m o r y ( ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ C l e a r _ M e m o r y ( ) 
 
 
 
 f:     P  Z _ C l e a r _ M e m o r y   Qxend  P r i n t e r   gQ  R A M   M e m o r y   vWb_0ߎ
 
         ԚW[b_0VpWb_0W[b_g Nv/}Mz(W  m e m o r y    b  o v e r f l o w ck8^BfQxe(W
 
         P r i n t _ O u t ( )   KNMRQ0vu  m e m o r y   EQncNP r i n t e r   1\g*RdHQMR	eQv
 
         Wb_TW[b_pMQ|vu
Nvuv*RdHQ(W  Z _ P r i n t _ O u t ( )   KNMRQ0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C l e a r _ M e m o r y E x ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   nd  P r i n t e r   gQ  R A M   b  F l a s h   M e m o r y   vǌe0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ C l e a r _ M e m o r y E x ( i n t   n M o d e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   S u b   Z _ C l e a r _ M e m o r y E x ( B y V a l   n M o d e   A s   L o n g ) 
 
     V B . n e t : 
 
         D e c l a r e   S u b   Z _ C l e a r _ M e m o r y E x ( B y V a l   n M o d e   A s   I n t e g e r ) 
 
 
 
 Sxe
 
         n M o d e ; 
 
             0   - - >   R A M 0
 
             1   - - >   F l a s h   M e m o r y 0
 
 
 
 {O: 
 
     V C : 
 
         Z _ C l e a r _ M e m o r y E x ( 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ C l e a r _ M e m o r y E x ( 0 ) 
 
 
 
 f:     P  Z _ C l e a r _ M e m o r y E x   Qxend  P r i n t e r   gQ  R A M   b  F l a s h   M e m o r y   vWb_0ߎ
 
         ԚW[b_0VpWb_0W[b_g Nv/}Mz(W  m e m o r y    b  o v e r f l o w ck8^BfQxe(W
 
         P r i n t _ O u t ( )   KNMRQ0vu  m e m o r y   EQncNP r i n t e r   1\g*RdHQMR	eQv
 
         Wb_TW[b_pMQ|vu
Nvuv*RdHQ(W  Z _ P r i n t _ O u t ( )   KNMRQ0
 
         
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ B a c k f e e d ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[jd|V6eݍ0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ S e t _ B a c k f e e d ( i n t   n D i s t a n c e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ B a c k f e e d ( B y V a l   n D i s t a n c e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ B a c k f e e d ( B y V a l   n D i s t a n c e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n D i s t a n c e ; 
 
             -[jd|V6evݍ{
W0 ^9 9 9 0UMO  :   d o t 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ B a c k f e e d ( 2 0 4 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ B a c k f e e d ( 2 0 4 ) 
 
 
 
 f:     P  Z _ S e t _ B a c k f e e d   QxeSNOpSh_jRpS[_YT N\kjd|}. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ D a r k n e s s ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[qa-RpSq^0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ D a r k n e s s ( i n t   d a r k n e s s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ D a r k n e s s ( B y V a l   d a r k n e s s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ D a r k n e s s ( B y V a l   d a r k n e s s   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         d a r k n e s s ; 
 
             -[qa-RpSq^{
W- 3 0 ^3 0 0p r i n t e r   gQ[p  0 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ D a r k n e s s ( 1 2 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ D a r k n e s s ( 1 2 ) 
 
 
 
 f:   P  Z _ S e t _ D a r k n e s s   Qxec6Rq_Pom`_0Rf}YvpSQT`Oarna NNV }
 
         P  p a p e r   m e d i a 0r i b b o n   t y p e s ( w a x , s e m i - r e s i n   T  r e s i n )   T  i m a g e   p a t t e r n   i t s e l f 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ D e b u g D i a l o g ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[d/tX0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ D e b u g D i a l o g ( i n t   n E n a b l e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ D e b u g D i a l o g ( B y V a l   n E n a b l e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ D e b u g D i a l o g ( B y V a l   n E n a b l e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n E n a b l e ; 
 
             1   - >   d/tX. 
 
             0   - >   d/tXܕ. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ D e b u g D i a l o g ( 1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ D e b u g D i a l o g ( 1 ) 
 
 
 
 f:     P  Z _ S e t _ D e b u g D i a l o g   Qxe-[d/tXdNgVP/x
 
         _NgyQf:y
o`
\qFh0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ L a b e l ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[}5_w^,   (W#~}Bfdk<P/f -[v0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ L a b e l ( i n t   L e n g t h ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ L a b e l ( B y V a l   L e n g t h   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ L a b e l ( B y V a l   L e n g t h   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         L e n g t h ; 
 
             #~}5_RpSw^,   UMO:   P }. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ L a b e l ( 3 0 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ L a b e l ( 3 0 0 ) 
 
 
 
 f:     P  Z _ S e t _ L a b e l   Qxe-[jd|w^. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ M o d e ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _UR  C u t t e r   b  P e e l 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ M o d e ( c h a r   m o d e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ M o d e ( B y V a l   m o d e   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ M o d e ( B y V a l   m o d e   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m o d e ; 
 
             T :   t e a r   o f f . 
 
             P :   p e e l   o f f . 
 
             C :   c u t t e r   e n a b l e . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ M o d e ( ' C ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ M o d e ( A s c ( " C " ) ) 
 
 
 
 f:     P  Z _ S e t _ M o d e   Qxep͑Mn. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ O r i g i n ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  Y   ^jYRpSMOn0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ O r i g i n ( i n t   y ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ O r i g i n ( B y V a l   y   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ O r i g i n ( B y V a l   y   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         y ; 
 
             Y   ^jwYRpSMOn. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ O r i g i n ( 1 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ O r i g i n ( 1 0 ) 
 
 
 
 f:     P  Z _ S e t _ O r i g i n   Qxe(W-[  Y   ^jwYRpSMOn. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ P a p e r ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[}5_p#~b
N#~}5_0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ P a p e r ( c h a r   m o d e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P a p e r ( B y V a l   m o d e   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P a p e r ( B y V a l   m o d e   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m o d e ; 
 
             N : #~}5_,   Y : 
N#~}5_. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ P a p e r ( ' Y ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ P a p e r ( A s c ( " Y " ) ) 
 
 
 
 f:     P  Z _ S e t _ P a p e r   Qxe(W-[}5_p#~b
N#~}5_. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ P r n c o m p o r t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  S e r i a l   P o r t 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ P r n c o m p o r t ( i n t   b a u d ,   i n t   p a r i t y ,   i n t   d a t a ,   i n t   s t o p ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r n c o m p o r t ( B y V a l   b a u d   A s   L o n g ,   B y V a l   p a r i t y   A s   L o n g ,   _ 
 
             B y V a l   d a t a   A s   L o n g ,   B y V a l   s t o p   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r n c o m p o r t ( B y V a l   b a u d   A s   I n t e g e r ,   B y V a l   p a r i t y   A s   I n t e g e r ,   _ 
 
             B y V a l   d a t a   A s   I n t e g e r ,   B y V a l   s t o p   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         b a u d ; 
 
             >rs. 
 
             2 4 0 0     - >   2 4 0 0   b a u d . 
 
             4 8 0 0     - >   4 8 0 0   b a u d . 
 
             9 6 0 0     - >   9 6 0 0   b a u d . 
 
             1 9 2 0 0   - >   1 9 2 0 0   b a u d . 
 
             3 8 4 0 0   - >   3 8 4 0 0   b a u d . 
 
         p a r i t y ; 
 
             P a r i t y 0
 
             0 :   n o n e   p a r i t y . 
 
             1 :   e v e n   p a r i t y . 
 
             2 :   o d d   p a r i t y . 
 
         d a t a ; 
 
             D a t a   b i t   n u m b e r 7   b  8 0
 
         s t o p ; 
 
             S t o p   b i t   n u m b e r 1   b  2 0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ P r n c o m p o r t ( 9 6 0 0 ,   0 ,   8 ,   1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ P r n c o m p o r t ( 9 6 0 0 ,   0 ,   8 ,   1 ) 
 
 
 
 f:   P  Z _ S e t _ P r n c o m p o r t   Qxeg-[pSh_j^RW-[<PO9epSh_jvTe
 
         P C   ^RW-[<PYg
NTGR!ql  P C   #c0dkQxe_(WQxe  P r i n t _ O u t 
 
         KNMRWL_UhsWL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ P r n c o m p o r t _ P C ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  P C   ^RW0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ P r n c o m p o r t _ P C ( i n t   n B a u d R a t e ,   i n t   n B y t e S i z e ,   i n t   n P a r i t y ,   i n t   n S t o p B i t s ,   
 
             i n t   n D s r ,   i n t   n C t s ,   i n t   n X o n X o f f ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r n c o m p o r t _ P C ( B y V a l   n B a u d R a t e   A s   L o n g ,   _ 
 
             B y V a l   n B y t e s S i z e   A s   L o n g ,   B y V a l   n P a r i t y   A s   L o n g ,   B y V a l   n S t o p B i t s   A s   L o n g ,   _ 
 
             B y V a l   n D s r   A s   L o n g ,   B y V a l   n C t s   A s   L o n g ,   B y V a l   n X o n X o f f   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r n c o m p o r t _ P C ( B y V a l   n B a u d R a t e   A s   I n t e g e r ,   _ 
 
             B y V a l   n B y t e s S i z e   A s   I n t e g e r ,   B y V a l   n P a r i t y   A s   I n t e g e r ,   B y V a l   n S t o p B i t s   A s   I n t e g e r ,   _ 
 
             B y V a l   n D s r   A s   I n t e g e r ,   B y V a l   n C t s   A s   I n t e g e r ,   B y V a l   n X o n X o f f   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n B a u d R a t e ; 
 
             >rsYNh
 
             1   - >   1 1 0           9   - >   1 9 2 0 0 
 
             2   - >   3 0 0         1 0   - >   3 8 4 0 0 
 
             3   - >   6 0 0         1 1   - >   5 6 0 0 0 
 
             4   - >   1 2 0 0       1 2   - >   5 7 6 0 0 
 
             5   - >   2 4 0 0       1 3   - >   1 1 5 2 0 0 
 
             6   - >   4 8 0 0       1 4   - >   1 2 8 0 0 0 
 
             7   - >   9 6 0 0       1 5   - >   2 5 6 0 0 0 
 
             8   - >   1 4 4 0 0       0   - >   9 6 0 0 
 
         n B y t e S i z e ; 
 
             D a t a   b i t   n u m b e r : 
 
             0   - >   7 - b i t   d a t a 
 
             7   - >   7 - b i t   d a t a 
 
             8   - >   8 - b i t   d a t a 
 
         n P a r i t y ; 
 
             P a r i t y YNh
 
             0   - >   n o n e   p a r i t y 
 
             1   - >   e v e n   p a r i t y 
 
             2   - >   o d d     p a r i t y 
 
         n S t o p B i t s ; 
 
             S t o p   b i t   n u m b e r : 
 
             0   - >   1   s t o p   b i t 
 
             1   - >   1   s t o p   b i t 
 
             2   - >   2   s t o p   b i t s 
 
         n D s r ; 
 
             S e t u p   h a r d w a r e   f l o w   c o n t r o l 
 
             1   - >   D T R   C O N T R O L   H A N D S H A K E ; 
 
             0   - >   D T R   C O N T R O L   E N A B L E ; 
 
         n C t s ; 
 
             S e t u p   h a r d w a r e   f l o w   c o n t r o l 
 
             1   - >   R T S   C O N T R O L   H A N D S H A K E ; 
 
             0   - >   R T S   C O N T R O L   E N A B L E ; 
 
         n X o n X o f f ; 
 
             S e t u p   s o f t w a r e   f l o w   c o n t r o l 
 
             0   - >   E n a b l e ; 
 
             1   - >   D i s a b l e ; 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ P r n c o m p o r t _ P C ( 0 ,   0 ,   0 ,   0 ,   0 ,   0 ,   0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ P r n c o m p o r t _ P C ( 0 ,   0 ,   0 ,   0 ,   0 ,   0 ,   0 ) 
 
 
 
 f:     P  Z _ S e t _ P r n c o m p o r t _ P C   Qxeg-[  P C   ^RW-[<PO9e  P C   vTepSh_j^RW
 
         -[<PYg
NTGR!qlpSh_j#c0dkQxe_(WQxe  Z _ P r i n t _ O u t   KNMRWL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ R e s e t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   V_0RS]^-[<P0
 
 
 
 l: 
 
     V C : 
 
         v o i d   Z _ S e t _ R e s e t ( ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D e c l a r e   S u b   Z _ S e t _ R e s e t ( ) 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ R e s e t ( ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ R e s e t ( ) 
 
 
 
 f:     P  Z _ S e t _ R e s e t   QxeO(u_,   p r i n t e r   gV_0RS]^-<P0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ S p e e d ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  p r i n t e r   RpSBfv^0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ S p e e d ( i n t   s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ S p e e d ( B y V a l   s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ S p e e d ( B y V a l   s   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         s ; 
 
             s p e e d ,   V a l u e :   1   ~   6 . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ S p e e d ( 3 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ S p e e d ( 3 ) 
 
 
 
 f:     P  Z _ S e t _ S p e e d   Qxe(W-[RpSBfv^0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ T P H ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  p r i n t e r   vIpS!j_0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ T P H ( c h a r   m ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ T P H ( B y V a l   m   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ T P H ( B y V a l   m   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m ; 
 
             T :   qI. 
 
             D :   qa. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ T P H ( ' T ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ T P H ( A s c ( " T " ) ) 
 
 
 
 f:     P  Z _ S e t _ T P H   Qxep͑Mn. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ U n i t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[^ϑUMOpTblQ:\bP }0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ U n i t ( c h a r   m ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ U n i t ( B y V a l   m   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ U n i t ( B y V a l   m   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         m ; 
 
             D :   d o t s . 
 
             I :   i n c h e s . 
 
             M :   m i l l i m e t e r s . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ U n i t ( ' D ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ U n i t ( A s c ( " D " ) ) 
 
 
 
 f:     P  Z _ S e t _ U n i t   QxeSf9e^ϑUMOpTblQ:\bP }0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ G a p ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[  G a p   w^0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ G a p ( i n t   n P a t t e r n ,   i n t   g a p L e n ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ G a p ( B y V a l   n P a t e r n   A s   L o n g ,   B y V a l   g a p L e n   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ G a p ( B y V a l   n P a t e r n   A s   I n t e g e r ,   _ 
 
             B y V a l   g a p L e n   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n P a t t e r n ; 
 
             0   ~   6 5 5 3 5   ( m m ) . 
 
         g a p L e n ; 
 
             5   ~   6 5 5 3 5   ( m m ) . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ G a p ( 3 0 ,   2 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ G a p ( 3 0 ,   2 0 ) 
 
 
 
 f:     P  Z _ S e t _ G a p   QxeS-[}5_  G a p   w^, vu  G a p   >   5   m m   Bf, MbO(udkQxe, N
 
         _(W  Z _ S e t _ L a b e l ( )   MRWL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ P r o c e s s D l g ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _Ubܕ2^
\qFh0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ P r o c e s s D l g ( i n t   n S h o w ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r o c e s s D l g ( B y V a l   n S h o w   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r o c e s s D l g ( B y V a l   n S h o w   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n S h o w ; 
 
             0   - >   ܕ0
 
             1   - >   _U0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ P r o c e s s D l g ( 1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ P r o c e s s D l g ( 1 ) 
 
 
 
 f:     P  Z _ S e t _ P r o c e s s D l g   QxeSܕ2^
\qFh0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ E r r o r D l g ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _Ubܕ͑fbOUz0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ E r r o r D l g ( i n t   n S h o w ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ E r r o r D l g ( B y V a l   n S h o w   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ E r r o r D l g ( B y V a l   n S h o w   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n S h o w ; 
 
             0   - >   ܕ0
 
             1   - >   _U0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ E r r o r D l g ( 1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ E r r o r D l g ( 1 ) 
 
 
 
 f:     P  Z _ S e t _ E r r o r D l g   QxeSܕ͑fbOUz0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ B a r 2 d _ Q R C o d e ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   2 D   B a r c o d   RpS0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ B a r 2 d _ Q R C o d e ( i n t   x ,   i n t   y ,   i n t   n M o d e l ,   i n t   n M a g n i ,   i n t   n E r r _ C o r ,   i n t   n I n p u t ,   
 
             L P C T S T R   d a t a ,   i n t   i n c r e a s e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ Q R C o d e ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   _ 
 
         B y V a l   n M o d e l   A s   L o n g ,   B y V a l   n M a g n i   A s   L o n g ,   B y V a l   n E r r _ C o r   A s   L o n g ,   _ 
 
             B y V a l   n I n p u t   A s   L o n g ,   B y V a l   d a t a   A s   S t r i n g ,   B y V a l   i n c r e a s e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ Q R C o d e ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   n M o d e l   A s   I n t e g e r ,   B y V a l   n M a g n i   A s   I n t e g e r ,   B y V a l   n E r r _ C o r   A s   I n t e g e r ,   _ 
 
             B y V a l   n I n p u t   A s   I n t e g e r ,   B y V a l   d a t a   A s   S t r i n g ,   B y V a l   i n c r e a s e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. 
 
         n M o d e l ; 
 
             Q R   c o d e .z^
 
             1   - - >   o r i g i n a l ; 
 
             2   - - >   e n h a n c e d         
 
         n M a g n i ; 
 
             M a g n i f i c a t i o n   F a c t o r 
 
             1   - - >   o n   1 5 0   d p i   p r i n t e r s 
 
             2   - - >   o n   2 0 0   d p i   p r i n t e r s 
 
             3   - - >   o n   3 0 0   d p i   p r i n t e r s 
 
             4   - - >   t h r o u g h   1 0 
 
         n E r r _ C o r ; 
 
             /!hck
 
             1   - - >   U l t r a   H i g h t   R e l i a b i l i t y 
 
             2   - - >   H i g h t   R e l i a b i l i t y 
 
             3   - - >   S t a n d a r d 
 
             4   - - >   H i g h t   d e n s i t y 
 
         n I n p u t ; 
 
             1   - - >   A u t o m a t i c 
 
             2   - - >   M a n u a l 
 
         d a t a : 
 
             hxǌe. 
 
         i n c r e a s e : 
 
             Xϑ<P. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C :                                                                                                         
 
         Z _ B a r 2 d _ Q R C o d e ( 2 0 ,   2 0 ,   2 ,   2 ,   3 ,   1 ,   " Q R   C o d e " ,   0 ) ;         
 
     V B :   V B A :   V B . n e t :                                                                               
 
         C a l l   Z _ B a r 2 d _ Q R C o d e ( 2 0 ,   2 0 ,   2 ,   2 ,   3 ,   1 ,   " Q R   C o d e " ,   0 ) 
 
 
 
 f:     P  Z _ B a r 2 d _ Q R C o d e   QxeSRpS  2 D   B a r c o d   Q R   C o d e 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ P r i n t W i d t h ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[RpS{
W0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ P r i n t W i d t h ( i n t   n D o t W i d t h ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r i n t W i d t h ( B y V a l   n D o t W i d t h   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ P r i n t W i d t h ( B y V a l   n D o t W i d t h   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n D o t W i d t h ; 
 
              g'YRpS{
W. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         i n t   Z _ S e t _ P r i n t W i d t h ( 4 0 6 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ P r i n t W i d t h ( 4 0 6 ) 
 
 
 
 f:     P  Z _ S e t _ P r i n t W i d t h   QxeS-[RpS{
W0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ P r i n t _ O u t Q u a l i t y ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   RpS@b	gǌe0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ P r i n t _ O u t Q u a l i t y ( i n t   n T o t a l ,   i n t   c o p i e s ,   i n t   s e t s ,   i n t   n P a u s e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ O u t Q u a l i t y ( B y V a l   n T o t a l   A s   L o n g ,   B y V a l   s e t s   A s   L o n g ,   _ 
 
             B y V a l   c o p i e s   A s   L o n g ,   B y V a l   n P a u s e   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ P r i n t _ O u t Q u a l i t y ( B y V a l   n T o t a l   A s   I n t e g e r ,   B y V a l   s e t s   A s   I n t e g e r ,   _ 
 
             B y V a l   c o p i e s   A s   I n t e g e r ,   B y V a l   n P a u s e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         n T o t a l ; 
 
             RpS=~5_xe. 
 
         s e t s ; 
 
             f\PTRv<P. 
 
         c o p i e s ; 
 
             T#jvjd|RpSNxe. 
 
         n P a u s e ; 
 
             /f&Tks e t s 5_xef\P. 
 
             1   - >   Y e s ,   0   - >   N o . 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ P r i n t _ O u t Q u a l i t y ( 1 ,   1 ,   1 ,   1 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ P r i n t _ O u t Q u a l i t y ( 1 ,   1 ,   1 ,   1 ) 
 
 
 
 f:     P  Z _ P r i n t _ O u t Q u a l i t y   Qxeg@b	gǌe0R  P r i n t e r PQxe(W@b	gQ
 
         xeKN_Z _ C l o s e P r n ( )   KNMRWL0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ M i r r o r ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   _Ubܕ\!j_0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ M i r r o r ( c h a r   d ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ M i r r o r   ( B y V a l   d   A s   B y t e )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ M i r r o r   ( B y V a l   d   A s   B y t e )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         d ; 
 
             N   - >    N,RpS,   Y   - >   SIRpS. 
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ M i r r o r ( ' Y ' ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ M i r r o r ( A s c ( " Y " ) ) 
 
 
 
 f:   P  Z _ S e t _ M i r r o r QxeSc6R_Ubܕ\!j_
N֊(Wz_-N|TSvMOn
 
         pUO@b	gRpSveW[0hxbWHhvgO-[SIb
NSI0(Wz
 
         _-N͑|TSdkQxeGRN g_ N!k|TSdkQxev-[p;N0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ B a r 2 d _ R S S ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NPR S S hx0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ B a r 2 d _ R S S ( i n t   x ,   i n t   y ,   c h a r   o r i ,   i n t   r t y p e ,   i n t   m a g ,   i n t   h e i g h t ,   i n t   s e g ,   
 
             L P C T S T R   d a t a 1 ,   L P C T S T R   d a t a 2 ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ R S S ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   B y V a l   o r i   A s   B y t e ,   _ 
 
             B y V a l   r t y p e   A s   L o n g ,   B y V a l   m a g   A s   L o n g ,   B y V a l   h e i g h t   A s   L o n g ,   B y V a l   s e g   A s   L o n g ,   _ 
 
             B y V a l   d a t a 1   A s   S t r i n g ,   B y V a l   d a t a 2   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ R S S ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   o r i   A s   B y t e ,   B y V a l   r t y p e   A s   I n t e g e r ,   B y V a l   m a g   A s   I n t e g e r ,   _ 
 
             B y V a l   h e i g h t   A s   I n t e g e r ,   B y V a l   s e g   A s   I n t e g e r ,   B y V a l   d a t a 1   A s   S t r i n g ,   _ 
 
             B y V a l   d a t a 2   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X   ^j0
 
         y ; 
 
             Y   ^j0
 
         o r i ; 
 
             RpSeT0  
 
             N :   0  
 
             B :   9 0  
 
             I :   1 8 0    
 
             R :   2 7 0                                                                                            
 
         r t y p e ; 
 
             hxW%R0
 
             1   - >   R S S - 1 4   
 
             2   - >   R S S   T r u n c a t e d 
 
             3   - >   R S S   S t a c k e d 
 
             4   - >   R S S   S t a c k e d   O m n i d i r e c t i o n a l 
 
             5   - >   R S S   L i m i t e d 
 
             6   - >   R S S   E x p a n d e d           
 
             ( -<P:   1 )             
 
         m a g ; 
 
             >e'Y
Ps0  {
W:   1 ~ 1 0   ( -<P:   1 )   
 
         h e i g h t ; 
 
             hxؚ^0
 
             jnhx g\ؚ^P6R: 
 
             R S S - 1 4                                             - >   3 3   p i x e l s                                   
 
             R S S   S t a c k e d                                   - >   1 3   p i x e l s 
 
             R S S   T r u n c a t e d                               - >   1 3   p i x e l s 
 
             R S S   S t a c k e d   O m n i d i r e c t i o n a l   - >   6 9   p i x e l s 
 
             R S S   L i m i t e d                                   - >   1 0   p i x e l s 
 
             R S S   E x p a n d e d                                 - >   3 4   p i x e l s       
 
         s e g ; 
 
             kRhxSS+Tv g'Yǌe@SJXxeϑS(WO(uR S S   E x p a n d e d hxBf	gHe
 
             (WvQ[^WvR S S hx-NGRp!qHeSxe{
Wp2 ~ 2 2 -<Pp2 2 Ndk<P_ pvPxe0  
 
         d a t a 1 ; 
 
             xeW[W%Rvǌe0
 
         d a t a 2 ; 
 
             N}hxvǌe0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ B a r 2 d _ R S S ( 1 0 0 ,   1 0 0 ,   ' R ' ,   6 ,   1 ,   3 4 ,   4 ,   " 1 2 3 4 5 6 7 8 9 0 " ,   " R S S   c o d e " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ B a r 2 d _ R S S ( 1 0 0 ,   1 0 0 ,   A s c ( " R " ) ,   6 ,   1 ,   3 4 ,   4 ,   " 1 2 3 4 5 6 7 8 9 0 1 2 " ,   " R S S   c o d e " ) 
 
 
 
 f:     P  Z _ B a r 2 d _ R S S   QxeSNRpSQ NP  R S S   B a r c o d e 0                                                
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ E n c r y p t i o n K e y ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   -[R[pSv<P0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ S e t _ E n c r y p t i o n K e y ( c h a r   e n c r y p t i o n K e y [ 1 6 ] ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ E n c r y p t i o n K e y ( B y V a l   e n c r y p t i o n K e y   A s   S t r i n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ E n c r y p t i o n K e y ( B y V a l   e n c r y p t i o n K e y   A s   S t r i n g )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         e n c r y p t i o n K e y ; 
 
             R[pSv<P,    1 6 PW[CQ,   vQW[CQv{
Wp0 x 2 1 0 x 7 E 0
 
 
 
 PV<P: 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O: 
 
     V C : 
 
         Z _ S e t _ E n c r y p t i o n K e y ( " k e y - 1 2 3 4 5 6 7 8 9 0 0 0 " ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ E n c r y p t i o n K e y ( " k e y - 1 2 3 4 5 6 7 8 9 0 0 0 " ) 
 
 
 
 f:     dkQ_(uO-[R[pSv<P,   NgzsSPǌe,   &N\vQ<P2QX[pSh_j-N0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ C h e c k _ E n c r y p t i o n K e y ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R    xR[pSvckx'`0
 
 
 
 l
 
     V C : 
 
         i n t   Z _ C h e c k _ E n c r y p t i o n K e y ( c h a r   d e c o d e K e y [ 8 ] ,   c h a r   e n c r y p t i o n K e y [ 1 6 ] ,   D W O R D   d w T i m e o u t m s ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ C h e c k _ E n c r y p t i o n K e y ( B y V a l   d e c o d e K e y   A s   S t r i n g ,   B y V a l   e n c r y p t i o n K e y   A s   S t r i n g ,   _ 
 
             B y V a l   d w T i m e o u t m s   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ C h e c k _ E n c r y p t i o n K e y ( B y V a l   d e c o d e K e y   A s   S t r i n g ,   B y V a l   e n c r y p t i o n K e y   A s   S t r i n g ,   _ 
 
             B y V a l   d w T i m e o u t m s   A s   U L o n g )   A s   I n t e g e r 
 
 
 
 Sxe
 
         d e c o d e K e y ; 
 
             ㉼xpSv<P,    8 PW[CQ,   vQW[CQv{
Wp0 x 2 1 0 x 7 E 0
 
         e n c r y p t i o n K e y ; 
 
             R[pSv<P,    1 6 PW[CQ,   vQW[CQv{
Wp0 x 2 1 0 x 7 E 0
 
         d w T i m e o u t m s ; 
 
             xeBf,   _N1\/fSǌe gwvBf,   UMOpm s 0
 
 
 
 PV<P
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         i n t   r e t ; 
 
         r e t   =   Z _ C h e c k _ E n c r y p t i o n K e y ( " t e s t - p a r " ,   " k e y - 1 2 3 4 5 6 7 8 9 0 0 0 " ,   1 0 0 0 ) ; / / 1   s e c o n d . 
 
     V B :   V B A : 
 
         D i m   r e t   A s   L o n g 
 
         r e t   =   Z _ C h e c k _ E n c r y p t i o n K e y ( " t e s t - p a r " ,   " k e y - 1 2 3 4 5 6 7 8 9 0 0 0 " ,   1 0 0 0 )       ' 1   s e c o n d . 
 
     V B . n e t : 
 
         D i m   r e t   A s   I n t e g e r 
 
         r e t   =   Z _ C h e c k _ E n c r y p t i o n K e y ( " t e s t - p a r " ,   " k e y - 1 2 3 4 5 6 7 8 9 0 0 0 " ,   1 0 0 0 )       ' 1   s e c o n d . 
 
 
 
 f    dkQ_(uOxR[pSvckx'`0\  d e c o d e K e y   v<PPpSh_j_,   
 
         TpSh_j-NvR[pSZPK{_VPK{P}g,   6q_T  d e c o d e K e y   S  e n c r y p t i o n K e y   
 
         v<PK{_vP}gZPk
\,   ww/f&TvT0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ B a r 2 d _ D a t a M a t r i x ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R:   pSQ NP  D a t a   M a t r i x   c o d e 0
 
 
 
 l: 
 
     V C : 
 
         i n t   Z _ B a r 2 d _ D a t a M a t r i x ( i n t   x ,   i n t   y ,   i n t   o ,   i n t   h ,   i n t   c ,   i n t   r ,   L P C T S T R   d a t a ,   i n t   i n c r e a s e ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ D a t a M a t r i x ( B y V a l   x   A s   L o n g ,   B y V a l   y   A s   L o n g ,   B y V a l   o   A s   L o n g ,   _ 
 
             B y V a l   h   A s   L o n g ,   B y V a l   c   A s   L o n g ,   B y V a l   r   A s   L o n g ,   B y V a l   d a t a   A s   S t r i n g ,   _ 
 
             B y V a l   i n c r e a s e   A s   L o n g )   A s   L o n g 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ B a r 2 d _ D a t a M a t r i x ( B y V a l   x   A s   I n t e g e r ,   B y V a l   y   A s   I n t e g e r ,   _ 
 
             B y V a l   o   A s   I n t e g e r ,   B y V a l   h   A s   I n t e g e r ,   B y V a l   c   A s   I n t e g e r ,   B y V a l   r   A s   I n t e g e r ,   _ 
 
             B y V a l   d a t a   A s   S t r i n g ,   B y V a l   i n c r e a s e   A s   I n t e g e r )   A s   I n t e g e r 
 
 
 
 Sxe: 
 
         x ; 
 
             X ^j. 
 
         y ; 
 
             Y ^j. 
 
         o ; 
 
             RpSeT[MO' 1 ' /f  0  ' 2 ' /f9 0  0' 3 ' /f1 8 0  ' 4 ' /f2 7 0  
 
         h ; 
 
             b a r c o d e   h e i g h t ( {
W1 ^9 9 9 9   p i x e l s ) . 
 
         c ; 
 
             c o l u m n   c o u n t ( {
W9 ^4 9 ,   _pvPxe<P;   0 pR) . 
 
         r ; 
 
             r o w   c o u n t ( {
W9 ^4 9 ,   _pvPxe<P;   0 pR) . 
 
         d a t a ; 
 
             ǌeW[2N. 
 
         i n c r e a s e ; 
 
             Xϑ, -<Pp0 . 
 
 
 
 R E T U R N 
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 E x a m p l e : 
 
     V C : 
 
         Z _ B a r 2 d _ D a t a M a t r i x ( 5 0 ,   5 0 ,   1 ,   1 0 ,   0 ,   0 ,   " D a t a M a t r i x " ,   0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ B a r 2 d _ D a t a M a t r i x ( 5 0 ,   5 0 ,   1 ,   1 0 ,   0 ,   0 ,   " D a t a M a t r i x " ,   0 ) 
 
 
 
 f:     P  Z _ B a r 2 d _ D a t a M a t r i x   QxeSNRpSQ NP  D a t a   M a t r i x   c o d e 0
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ C o m m T i m e o u t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R-[OvBf. 
 
 
 
 l
 
     V C : 
 
         v o i d   Z _ S e t _ C o m m T i m e o u t ( i n t   R e a d T o t a l T i m e o u t C o n s t a n t ,   i n t   W r i t e T o t a l T i m e o u t C o n s t a n t ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   S u b   Z _ S e t _ C o m m T i m e o u t ( B y V a l   R e a d T o t a l T i m e o u t C o n s t a n t   A s   L o n g ,   _ 
 
             B y V a l   W r i t e T o t a l T i m e o u t C o n s t a n t   A s   L o n g ) 
 
     V B . n e t : 
 
         D e c l a r e   S u b   Z _ S e t _ C o m m T i m e o u t ( B y V a l   R e a d T o t a l T i m e o u t C o n s t a n t   A s   I n t e g e r ,   _ 
 
             B y V a l   W r i t e T o t a l T i m e o u t C o n s t a n t   A s   I n t e g e r ) 
 
 
 
 Sxe
 
         R e a d T o t a l T i m e o u t C o n s t a n t ; 
 
             Sv>BfBf;   UMO  :   1   m s .   - 1   /f!qz'Y. 
 
         W r i t e T o t a l T i m e o u t C o n s t a n t ; 
 
             [eQv>BfBf;   UMO  :   1   m s .   - 1   /f!qz'Y. 
 
 
 
 {O
 
     V C : 
 
         Z _ S e t _ C o m m T i m e o u t ( 0 ,   - 1 ) ; 
 
         Z _ C r e a t e P r n ( 1 1 ,   N U L L ) ;   / / U S B 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ C o m m T i m e o u t ( 0 ,   - 1 ) 
 
         C a l l   Z _ C r e a t e P r n ( 1 1 ,   n u l l )   ' U S B 
 
 
 
 f    dkQ_(uO-[S/ [eQv>BfBf.   
 
         Yg`O O(udkQ_,   dkQ_ (W  Z _ C r e a t e P r n ( )   Q_MRWL. 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ G e t _ C o m m T i m e o u t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 RS_OvBf. 
 
 
 
 l
 
     V C : 
 
         v o i d   Z _ G e t _ C o m m T i m e o u t ( i n t   * R e a d T o t a l T i m e o u t C o n s t a n t ,   i n t   * W r i t e T o t a l T i m e o u t C o n s t a n t ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   S u b   Z _ G e t _ C o m m T i m e o u t ( B y R e f   R e a d T o t a l T i m e o u t C o n s t a n t   A s   L o n g ,   _ 
 
             B y R e f   W r i t e T o t a l T i m e o u t C o n s t a n t   A s   L o n g ) 
 
     V B . n e t : 
 
         D e c l a r e   S u b   Z _ G e t _ C o m m T i m e o u t ( B y R e f   R e a d T o t a l T i m e o u t C o n s t a n t   A s   I n t e g e r ,   _ 
 
             B y R e f   W r i t e T o t a l T i m e o u t C o n s t a n t   A s   I n t e g e r ) 
 
 
 
 Sxe
 
         R e a d T o t a l T i m e o u t C o n s t a n t ; 
 
             r e a d   t i m e o u t ;   u n i t   :   1   m s .   - 1   i s   i n f i n i t e . 
 
         W r i t e T o t a l T i m e o u t C o n s t a n t ; 
 
             w r i t e   t i m e o u t ;   u n i t   :   1   m s .   - 1   i s   i n f i n i t e . 
 
 
 
 {O
 
     V C : 
 
         i n t   R e a d T o t a l T i m e o u t C o n s t a n t ,   W r i t e T o t a l T i m e o u t C o n s t a n t ; 
 
         Z _ G e t _ C o m m T i m e o u t ( & R e a d T o t a l T i m e o u t C o n s t a n t ,   & W r i t e T o t a l T i m e o u t C o n s t a n t ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         D i m   R e a d T o t a l T i m e o u t C o n s t a n t ,   W r i t e T o t a l T i m e o u t C o n s t a n t   A s   L o n g 
 
         C a l l   Z _ G e t _ C o m m T i m e o u t ( R e a d T o t a l T i m e o u t C o n s t a n t ,   W r i t e T o t a l T i m e o u t C o n s t a n t ) 
 
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 Z _ S e t _ L a b e l F o r S m a r t P r i n t ( ) 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 R  -[  S m a r t   P r i n t   -N@b vǌ
. 
 
 
 
 l
 
     V C : 
 
         i n t   Z _ S e t _ L a b e l F o r S m a r t P r i n t ( i n t   l a b l e n g t h ,   i n t   g a p l e n g t h ) ; 
 
     V B :   V B A : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ L a b e l F o r S m a r t P r i n t ( B y V a l   l a b l e n g t h   A s   L o n g ,   _ 
 
             B y V a l   g a p l e n g t h   A s   L o n g )   A s   L o n g 
 
     V B . n e t : 
 
         D e c l a r e   F u n c t i o n   Z _ S e t _ L a b e l F o r S m a r t P r i n t ( B y V a l   l a b l e n g t h   A s   I n t e g e r ,   _ 
 
             B y V a l   g a p l e n g t h   A s   I n t e g e r )   A s   I n t e g e r 
 
             
 
 Sxe
 
         l a b l e n g t h ; 
 
             jd|w^0UMO  :   0 . 1   lQS0
 
         g a p l e n g t h ; 
 
             G A P   w^0UMO  :   0 . 1   lQS0
 
 
 
 PV<P
 
         0   - >   O K . 
 
         R e f e r e n c e   Z W - E r r o r . t x t   f i l e . 
 
 
 
 {O
 
     V C : 
 
         Z _ S e t _ L a b e l F o r S m a r t P r i n t ( 7 6 2 ,   3 0 ) ; 
 
     V B :   V B A :   V B . n e t : 
 
         C a l l   Z _ S e t _ L a b e l F o r S m a r t P r i n t ( 7 6 2 ,   3 0 ) 
 
 
 
 f    P  Z _ S e t _ L a b e l F o r S m a r t P r i n t   Qxe(uO-[  S m a r t   P r i n t   @b vjd|w^S  G A P   w^iQPǌ
0